Page 1 of 1

symbolic link to pacman cache directory tip

Posted: 08 Jun 2016, 10:35
by istinnjazz
Pacman and update/package manager saves all package downloads in /var/cache/pacman/pkg, this directory if not cleaned can grow up fast.
For those who would like to use updates or install packages frequently and do not have much space on their usb drive but have a Linux partition (ext2,ext3,ext4 etc) somewhere on an other drive,
you can copy all the packages to a new folder on the other partition and the create a symbolic link for it. I am using it this way successfully.
Remember by installing a package, pacman will keep the package in cache even when you will uninstall it. It is advisable not to delete those files if you wiil ever need downgrades or use those again without an internet connection.