Optimize pacman and free space on Arch

Archlinux-icon.png

The pacman cache is a folder containing compressed packages that you’ve downloaded – including older versions, e.g. you’ll have somepackage.0.1.1, somepackage.0.1.2 and somepackage.0.1.3, etc   It can be very useful if something breaks and you need to revert to an earlier package.  But it also takes up a lot of space!   I was able for free up about 4GB of space on my box by doing this:

pacman -Sc   This clears outdated/uninstalled packages.

I got another 1GB freed by running

pacman -Scc   This clears the whole folder, not just the packages that are outdated/uninstalled.

Optimise the pacman database (good to do from time-to-time!)

pacman-optimize && sync

This will attempt to put all the small files together in one (physical) location on the hard disk so that the hard disk head does not have to move so much when accessing all the packages.

http://wiki.archlinux.org/index.php/Improve_Pacman_Performance

Related Posts

Comments are closed.