IT Questions and Answers :)

Wednesday, November 22, 2017

In Arch Linux, which command can you use to completely empty the package cache?

In Arch Linux, which command can you use to completely empty the package cache?

  • apt-get clean
  • pacman -Syyu
  • apt-clear -Syu
  • pacman -Scc 
 
In Arch Linux, which command can you use to completely empty the package cache?

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

SOURCE

https://wiki.archlinux.org/index.php/pacman
Share:

0 comments:

Post a Comment

Popular Posts