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

5 points · 14 comments · view on lemmy.world

14 Comments

riodoro1@lemmy.world · 21 pts · 3y (3 replies)

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

Maddison@sh.itjust.works · 3 pts · 3y (2 replies)

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

forwardvoid@feddit.nl · 7 pts · 3y (1 reply)

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.works · 2 pts · 3y

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 · 15 pts · 3y (1 reply)

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.works · 5 pts · 3y

thank you!

forwardvoid@feddit.nl · 10 pts · 3y (1 reply)

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.works · 3 pts · 3y

thanks!

Lammy@lemmy.world · 6 pts · 3y
[ removed ]
Shikadi@lemmy.world · 4 pts · 3y (3 replies)

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.works · 5 pts · 3y (2 replies)

I have some dependency issues for sure

TheKrzyk@lemmy.world · 3 pts · 3y (1 reply)

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

Maddison@sh.itjust.works · 1 pts · 3y

Amen!

vpzom@dev.narwhal.city · 4 pts · 3y

coming from arch that's terrifying

rarely@sh.itjust.works · 1 pts · 3y

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