Open Menu
AllLocalCommunitiesAbout
lotide
AllLocalCommunitiesAbout
Login

Why should I run sudo apt update before installing a package? Why!?

⁨9⁩ ⁨likes⁩

Submitted ⁨⁨1⁩ ⁨year⁩ ago⁩ by ⁨Maddison@sh.itjust.works⁩ to ⁨linux@sh.itjust.works⁩

Image

source

Comments

Sort:hotnewtop
  • riodoro1@lemmy.world ⁨1⁩ ⁨year⁩ ago

    You want to know what the store actually has in stock before buying.

    source
    • Maddison@sh.itjust.works ⁨1⁩ ⁨year⁩ ago

      actually, every morning I wake, I update first thing, so I guess, I found it somewhat useless

      source
      • forwardvoid@feddit.nl ⁨1⁩ ⁨year⁩ ago

        You don’t have to do this. Run something like apticron if you want to make sure you don’t miss security updates or want everything on the latest version all the time.

        source
        • -> View More Comments
  • oleorun@lemmy.fan ⁨1⁩ ⁨year⁩ ago

    It’s not necessarily required but it is strongly suggested in case the package you are installing requires the latest version of a dependency.

    source
    • Maddison@sh.itjust.works ⁨1⁩ ⁨year⁩ ago

      thank you!

      source
  • forwardvoid@feddit.nl ⁨1⁩ ⁨year⁩ ago

    It updates the package lists APT uses. You don’t have to to run update before installing. But you could be installing the previous version of the application. If for instance you never run update, the upgrade command won’t do anything.

    source
    • Maddison@sh.itjust.works ⁨1⁩ ⁨year⁩ ago

      thanks!

      source
  • Lammy@lemmy.world ⁨1⁩ ⁨year⁩ ago

    The god of penguins will punish you if you do not follow his will.

    Tux has spoken.

    source
  • vpzom ⁨1⁩ ⁨year⁩ ago

    coming from arch that's terrifying

  • Shikadi@lemmy.world ⁨1⁩ ⁨year⁩ ago

    If you don’t, you can end up with dependency issues. Or at the very least you might install old out of date packages

    source
    • Maddison@sh.itjust.works ⁨1⁩ ⁨year⁩ ago

      I have some dependency issues for sure

      source
      • TheKrzyk@lemmy.world ⁨1⁩ ⁨year⁩ ago

        We all need to apt update && apt upgrade our lives from time to time

        source
        • -> View More Comments
  • rarely@sh.itjust.works ⁨1⁩ ⁨year⁩ ago

    Don’t ask. It makes things more exciting that way.

    source