symbolic link to pacman cache directory tip

Arch based Porteus community project

Moderator: M. Eerie

User avatar
istinnjazz
Samurai
Samurai
Posts: 115
Joined: 15 May 2016, 14:10
Distribution: Manjaro-OpenRC/Nemesis

symbolic link to pacman cache directory tip

Post#1 by istinnjazz » 08 Jun 2016, 10:35

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.