• slazer2au
    link
    fedilink
    English
    arrow-up
    26
    ·
    3 days ago

    I get that when I forget to update a Ubuntu VM for a week.

          • slazer2au
            link
            fedilink
            English
            arrow-up
            21
            ·
            3 days ago

            Execute order

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

            Needs a more concise order name…

            • Skullgrid
              link
              fedilink
              arrow-up
              11
              ·
              edit-2
              2 days ago
              cd ~
              nano .bash_aliases
              

              At the end of the file

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

              Ctrl+X
              Y
              Enter.

              source .bash_aliases
              

              There. Now it’s executeOrder

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

            • JackbyDev@programming.dev
              link
              fedilink
              English
              arrow-up
              2
              ·
              2 days 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
              6
              ·
              3 days 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.

        • Viceversa
          link
          fedilink
          arrow-up
          3
          arrow-down
          3
          ·
          3 days ago

          So much hassle just for routine update. Windows seems more stable in comparison.

          • 9bananas@feddit.org
            link
            fedilink
            arrow-up
            1
            ·
            2 days ago

            windows just completely screwed up another update…it’s like, what, the 5th or so this year alone? so almost every month or so they screw up real big.

            including some that bricked systems completely…

            at least atomic distros let you roll back without hassle…