Quickest way to update ALL packages from command line

Is there a way to update ALL of my local packages at once regardless of whether they were installed using snap, flatpak, dnf, etc? Right now I just have a shell script like this:

#!/bin/bash -v
sudo dnf update -y

sudo snap refresh

flatpak update -y

You could make a persistent bash alias encompassing those three commands.

1 Like

I don’t think so. Your options are either a script or an alias. Although GNOME Software should take care of the first and last.

My workflow is updating using GNOME Software to take care of dnf and flatpak packages, and running brew upgrade periodically.

1 Like

Yup, I have a few aliases set for personal convenience in ~/.bashrc.d/aliases - the first two are the ones I use for updating while the system is running, or triggering an offline update:

alias updall='sudo dnf upgrade --refresh && flatpak update'
alias updalloff='flatpak update && sudo dnf offline-upgrade download && sudo dnf offline-upgrade reboot'
alias <computername>='ssh <my username>@<other computer name>.local'
alias bk='~/backup-script.sh'
alias usenv='__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia'
alias ll='ls -la --color=auto'
alias nb='newsboat'
alias waypipe<computer name>='waypipe --compress lz4=9 ssh <my username>@<other computer name>.local'
2 Likes