• slazer2au@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 day ago

      Execute order

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

      Needs a more concise order name…

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        9 hours ago

        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.

      • loweffortname@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        0
        ·
        1 day ago

        Tiny nits:

        1. apt dist-upgrade is more potentially destructive.
        2. It’s apt autoremove (no spaces)

        Otherwise, I do this every morning on my work machine. It’s very satisfying to have updates.

      • Skullgrid@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 day ago
        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