I know that there are three command to update and then upgrade the whole system, these are:
- sudo apt-get update # Fetches the list of available updates
- sudo apt-get upgrade # Strictly upgrades the current packages
- sudo apt-get dist-upgrade # Installs updates (new ones)
Is there a super-upgrade command that combines all these commands to one?
Best Answer
There are 3 decent choices:
You could create a script something like the following:
Call it something like
update.sh
and place it in/usr/local/bin
and then make the script executable by running:Another method would be to create a bash alias (in
~/.bashrc
) or wherever you normally store your aliases:A final method would be to simply string the 3 commands together on the commandline:
A few choices...
Reference: