You are not logged in.
hello guys, i have decided that arch linux is great, and that i should move it from my virtual machine environment onto my actual computer however, i have downloaded various packages, and downloading them all again is going to be a waste of bandwidth. I would like to copy the local packages onto media so that i can basicly move those packages onto another computer.
So, my question is, would it be possible for me to store the packages i have already downloaded onto a cd etc? (well, is there a way to get my .pkg.tar.gz files?)
I have looked around and i believe that the packages arent kept in their .pkg.tar.gz format, and are extracted to the /var/lib/pacman/local directory. The directories here contain the package name, which include files like 'depends', 'desc', 'files' and 'install'. I am pretty sure that these files are needed in the re-construction of the package, and I am also fairly sure that the other files i need have been moved to other directories in my system.
So would anyone know a way of getting the local .pkg.tar.gz files?
Thanks for any help! and sorry for being a newb
Last edited by Deuterium (2009-09-28 23:41:29)
Offline
Look in /var/cache/pacman/pkg/
Offline
oh wow, i new about this directory, except i skipped it, thinking that only old files would be stored (seeing as not all the packages have been updated yet, i thought not all of them would exist here) Thanks a lot Allan! and apologies for the newbie question!
Offline
Might wanna clean the old pkgs from the cache first "pacman -Sc'
Offline
Does pacman -Sc delete just old packages?
I do not speak English, but I understand...
Offline
man pacman.conf
CleanMethod = KeepInstalled | KeepCurrent
If set to KeepInstalled (the default), the -Sc operation will clean
packages that are no longer installed (not present in the local
database). If set to KeepCurrent, -Sc will clean outdated packages
(not present in any sync database). The second behavior is useful
when the package cache is shared among multiple machines, where the
local databases are usually different, but the sync databases in
use could be the same.
Offline