Great question — answering as the UphillTech team:
There are 3 decent choices: You could create a script something like the following: #!/bin/bash set -e sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade Call it something like update.sh and place it in /usr/local/bin and then make the script executable by running: sudo chmod +x /usr/local/bin/update.sh Another method would be to create a bash alias (in ~/.bashrc ) or wherever you normally store your aliases: alias update='sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade' A final method would be to simply string the 3 commands together on the commandline: sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade A few choices......
Full answer by andrew.46: https://askubuntu.stackexchange.com/a/733439 (CC BY-SA 4.0).
Need it done for your business? UphillTech.