SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Maddison@sh.itjust.works to Linux@sh.itjust.works · 2 years ago

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

message-square
message-square
15
fedilink
5
message-square

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

Maddison@sh.itjust.works to Linux@sh.itjust.works · 2 years ago
message-square
15
fedilink

alert-triangle
You must log in or register to comment.
  • riodoro1@lemmy.world
    link
    fedilink
    arrow-up
    21
    arrow-down
    1
    ·
    2 years ago

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

    • Maddison@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

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

      • forwardvoid@feddit.nl
        link
        fedilink
        arrow-up
        7
        ·
        2 years 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.

        • Maddison@sh.itjust.worksOP
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          actually, I like updating :') I have some free time and I like looking at package names (that’s a call for help)

  • oleorun@lemmy.fan
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    2 years 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.

    • Maddison@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      thank you!

  • forwardvoid@feddit.nl
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    2 years ago

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

    Edit: spelling

    • Maddison@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      thanks!

  • Lammy@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

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

    Tux has spoken.

  • Shikadi@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    2 years 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

    • Maddison@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      I have some dependency issues for sure

      • TheKrzyk@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

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

        • Maddison@sh.itjust.worksOP
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          Amen!

  • vpzom@dev.narwhal.city
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

    coming from arch that’s terrifying

  • Dodecahedron December@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

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

Linux@sh.itjust.works

linux@sh.itjust.works

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@sh.itjust.works

Shit, just linux.

Use this community for anything related to linux for now, if it gets too huge maybe there will be some sort of meme/gaming/shitpost spinoff. Currently though… go nuts

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 2 users / week
  • 179 users / month
  • 596 users / 6 months
  • 42 local subscribers
  • 2.94K subscribers
  • 98 Posts
  • 512 Comments
  • Modlog
  • mods:
  • carrot@sh.itjust.works
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org