In Arch Linux, which command can you use to completely empty the package cache?
- apt-get clean
- pacman -Syyu
- apt-clear -Syu
- pacman -Scc
EXPLANATION
The pacman command stores its downloaded packages in /var/cache/pacman/pkg/ and does not remove the old or uninstalled versions automatically, therefore it is necessary to deliberately clean up that folder periodically to prevent such folder to grow indefinitely in size. The built-in option to remove all the cached packages that are not currently installed and also prevents from reinstalling a package directly from the cache folder in case of need, thus requiring a new download is the following:# pacman -Scc
0 comments:
Post a Comment