Difference between revisions of "Pacman Overview"
m
→Cleaning the Cache
imported>Dalto m (typo) |
imported>Cscs |
||
Line 123: | Line 123: | ||
When pacman installs packages, it keeps a copy of all the old packages you have downloaded. This cache can be very useful if you have to install older packages in an emergency. However, left unchecked, this cache will grow very large over time. Systems running [[Pamac]] will already have access to it's automated pacman cache cleaning functions. It is also possible to clean them manually using pacman. | When pacman installs packages, it keeps a copy of all the old packages you have downloaded. This cache can be very useful if you have to install older packages in an emergency. However, left unchecked, this cache will grow very large over time. Systems running [[Pamac]] will already have access to it's automated pacman cache cleaning functions. It is also possible to clean them manually using pacman. | ||
To clear the cache of | To clear the cache of packages that are no longer installed, enter the following command: | ||
sudo pacman -Sc | sudo pacman -Sc | ||
Line 133: | Line 133: | ||
A safer way to remove old package cache files is to remove all packages except for the latest three package versions using {{ic|paccache}}: | A safer way to remove old package cache files is to remove all packages except for the latest three package versions using {{ic|paccache}}: | ||
paccache -rvk3 | paccache -rvk3 | ||
=The Configuration File, pacman.conf= | =The Configuration File, pacman.conf= |