• jcr@jlai.lu
        link
        fedilink
        Français
        arrow-up
        2
        ·
        5 hours ago

        Incredible that it’s not written everywhere, I always wanted to use something like this without the " update && upgrade" which looks like is not working oftentimes

        • TerraRoot@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          2 hours ago

          Is it really not written? I saw apt upgrade --update and knew the standard shortcut would be -u, but that didn’t work so I tried -U, bingo bongo off I went.

        • JargonWagon@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          8 hours ago

          Your note is very interesting about the difference between the commands and how autoremove will automatically remove stuff before or after the upgrade is performed. Should it always be done after, or are there instances when running it before is more beneficial? Is there any need to do both like this:

          # sudo apt --update --autoremove upgrade -y && sudo apt autoremove -y
          
          
          • Arthur Besse@lemmy.ml
            link
            fedilink
            English
            arrow-up
            2
            ·
            7 hours ago

            I can’t really imagine a benefit to --autoremove except for keeping old packages a bit longer before removing them.

            Eg, if you run apt --update --autoremove upgrade -y once a day you’ll keep your prior-to-currently-running-version kernel packages a day longer than if you ran autoremove immediately after each upgrade.

            To make things more confusing: the new-ish apt full-upgrade command seems to remove most of what apt autoremove wants to… but not quite everything. 🤷