You are not logged in.

#1 2010-01-26 17:36:51

lnx
Member
Registered: 2009-11-04
Posts: 108

[solved] archlinux grows bigger after each update?

I noticed that with every update archlinux seems to grow. Is this supposed to happen? What happens when the partition runs out on space? I've looked at the pacman archwiki, but I didn't find an answer there.

Last edited by lnx (2010-06-04 17:58:11)

Offline

#2 2010-01-26 17:38:37

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: [solved] archlinux grows bigger after each update?

Clean your package cache?


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#3 2010-01-26 18:19:52

Cyrusm
Member
From: Bozeman, MT
Registered: 2007-11-15
Posts: 1,053

Re: [solved] archlinux grows bigger after each update?

yeah, just run pacman -Scc and watch the free space magically appear!


just as a forwarning, make sure you aren't intending on downgrading any packages any time soon,

Last edited by Cyrusm (2010-01-26 18:21:21)


Hofstadter's Law:
           It always takes longer than you expect, even when you take into account Hofstadter's Law.

Offline

#4 2010-01-26 18:48:16

lnx
Member
Registered: 2009-11-04
Posts: 108

Re: [solved] archlinux grows bigger after each update?

Thanks for the suggestion! With my limited knowledge I would never have come up with this solution. I've been looking around for an understandable explanation of what a package cache is. All I've found so far is the commands for cleaning it, howto maintain etc. Can someone point me in the right direction?

Offline

#5 2010-01-26 18:58:43

draugdel
Member
Registered: 2008-08-12
Posts: 44

Re: [solved] archlinux grows bigger after each update?

It is basically a simple directory where all the packages you download (install, update and so on) get stored. That way, you don´t have to download them again, if you decided to remove a package and then install it again. It also provides a way to downgrade to an earlier package if you encounter problems after an update. It tends to get quite big after some time, so you should remember to clean it every now and then. Preferably without deleting the currently installed packages and after testing them for a while. That way you can be sure that they work correctly and can still downgrade easily if a future update breaks something.

Offline

#6 2010-01-26 19:04:56

owain
Member
From: Manchester, UK
Registered: 2009-08-24
Posts: 258

Re: [solved] archlinux grows bigger after each update?

lnx wrote:

Thanks for the suggestion! With my limited knowledge I would never have come up with this solution. I've been looking around for an understandable explanation of what a package cache is. All I've found so far is the commands for cleaning it, howto maintain etc. Can someone point me in the right direction?

Run

ls /var/cache/pacman/pkg

and you'll see.  Every time pacman downloads a new or updated package, it's stored there, available for if it needs reinstallation, or if you need to roll back to an earlier version.

(On preview, what he/she said wink )

Edit: note, Arch servers don't keep old versions.  pacman -Scc clears out the currently-installed versions, so if the next upgrade breaks something, it's harder to roll back.  pacman -Sc keeps the current version in the cache.

Last edited by owain (2010-01-26 19:07:43)

Offline

#7 2010-01-27 07:55:23

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [solved] archlinux grows bigger after each update?

owain wrote:

Arch servers don't keep old versions.  pacman -Scc clears out the currently-installed versions, so if the next upgrade breaks something, it's harder to roll back.  pacman -Sc keeps the current version in the cache.

It is not all lost. In case you ever need some old package not in your cache you may try the Wayback Machine or the more actual ARM server.


To know or not to know ...
... the questions remain forever.

Offline

Board footer

Powered by FluxBB