i guess its about time..

https://lemmy.world/post/48597246

When I forget to update a Ubuntu VM for a week.
i’m like 80/20 if this is just going to straight bork the machine.

Execute order

Sudo apt update && sudo apt upgrade -y && sudo apt auto remove -y

Needs a more concise order name…

nano .bash_alias

At the end of the file

alias executeOrder="Sudo apt update && sudo apt upgrade -y && sudo apt auto remove -y"

Ctrl+X
Enter.

Source .bash_alias

There. Now it’s executeOrder

Edit : .bash_alias(es?) should be in the home folder. Switch to it with cd ~

Tiny nits:

  • apt dist-upgrade is more pitentially destructive.
  • It’s apt autoremove (no spaces)
  • Otherwise, I do this evwry morning on my work machine. It’s very satisfying to have updates.

    There’s a flag for upgrade that will do an update as well. I don’t have it memorized, but you don’t need to “update and upgrade” anymore.