• ITGuyLevi@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            17 minutes ago

            I may be totally confused but I’ve also always done it in that order, otherwise I feel like it would run upgrades from your cache of the apt repos (possibly hitting errors as stuff likes to change), then after it would run apt update (updating the repos).

            My thought has always been update repos, then check those repos for software upgrades. I could definitely be wrong though.

        • MsFlammkuchen@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          19
          ·
          11 hours ago

          && executes the second command, if the command before was successful, || executes the second command if the first one was unsuccessful and ; executes the second command regardless of success.

      • Cevilia (she/they/…)@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        7
        ·
        13 hours ago

        I’m absolutely serious.

        You can also add a package name to install it at the same time as doing the upgrade, though personally I prefer to do that as a separate command so I can see what dependencies are needed.