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

3 years ago by Maddison to c/linux

riodoro1 21 points 3 years ago

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

path: 0 2563255, hotness: undefined, score: 21, children: 3
Maddison 3 points 3 years ago

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

path: 0 2563255 2563405, hotness: undefined, score: 3, children: 2
forwardvoid 7 points 3 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.

path: 0 2563255 2563405 2565088, hotness: undefined, score: 7, children: 1
Maddison 2 points 3 years ago

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

path: 0 2563255 2563405 2565088 2615996, hotness: undefined, score: 2, children: 0
oleorun 15 points 3 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.

path: 0 2563362, hotness: undefined, score: 15, children: 1
Maddison 5 points 3 years ago

thank you!

path: 0 2563362 2563380, hotness: undefined, score: 5, children: 0
forwardvoid 10 points 3 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

path: 0 2563344, hotness: undefined, score: 10, children: 1
Maddison 3 points 3 years ago

thanks!

path: 0 2563344 2563382, hotness: undefined, score: 3, children: 0
Lammy 6 points 3 years ago
path: 0 2563965, hotness: undefined, score: 6, children: 0
vpzom 4 points 3 years ago

coming from arch that's terrifying

path: 0 2614744, hotness: undefined, score: 4, children: 0
Shikadi 4 points 3 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

path: 0 2563320, hotness: undefined, score: 4, children: 3
Maddison 5 points 3 years ago

I have some dependency issues for sure

path: 0 2563320 2563388, hotness: undefined, score: 5, children: 2
TheKrzyk 3 points 3 years ago

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

path: 0 2563320 2563388 2563696, hotness: undefined, score: 3, children: 1
Maddison 1 point 3 years ago

Amen!

path: 0 2563320 2563388 2563696 2616051, hotness: undefined, score: 1, children: 0
rarely 1 point 3 years ago

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

path: 0 2645332, hotness: undefined, score: 1, children: 0
linux
linux

@sh.itjust.works

login for more options
5592
408
426

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

go to feed...