• Zink@programming.dev
      link
      fedilink
      arrow-up
      8
      ·
      9 hours ago

      iirc, apt-get is the version to use in scripts. They keep the input & output consistent so that it won’t break things.

      Regular old apt is for humans to use at the command prompt, and that’s what I use all the time.

        • Cenzorrll@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          2 hours ago

          Less options and it expects user input, so when you update and there’s a changelog or warning, it shows it to you and you can read it. It doesn’t continue because it thinks you’re there reading it. The options and output are subject to change, so you don’t want it in a script. Apt-get will always have the same options and expected output for automation purposes.