[Followup] Alias for updating everything.
1 message · started by Devi Garcia on Dec 03, 2025
[Followup] Alias for updating everything.
From Devi Garcia · Dec 03, 2025
today at the WHC I added a very useful alias to all the computer lab computers.. that would refresh the repos, update your applications and also update your snaps all from one command... and not the long string that would normally take.. but me just typing " update " figured someone else may want this command if they wanted a simple and easy way to pull all the updates without a GUI..
Quoted reply
(1 line)
#update aliasalias update='sudo apt update && sudo apt upgrade -y && sudo snap refresh'
#update alias
alias update='sudo apt update && sudo apt upgrade -y && sudo snap refresh'
simply add this to the end of your .bashrc file and it will work as well... the .bashrc file is a hidden file within the home directory so open any file manager.. hit ctrl+h and you'll see it... to edit the file a text editor or terminal can be used... simply paste the above code.. and save the file.. then type update in terminal and watch it go.. will still need sudo access.. just a quick example of how useful alias' can be