You are not logged in.
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
Clean your package cache?
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
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
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
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
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/pkgand 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
)
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
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