You are not logged in.

#1 2009-09-28 23:31:00

Deuterium
Member
Registered: 2009-09-26
Posts: 50

[SOLVED] storing local packages for later use

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 smile  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 tongue

Last edited by Deuterium (2009-09-28 23:41:29)

Offline

#2 2009-09-28 23:34:49

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: [SOLVED] storing local packages for later use

Look in /var/cache/pacman/pkg/

Offline

#3 2009-09-28 23:41:12

Deuterium
Member
Registered: 2009-09-26
Posts: 50

Re: [SOLVED] storing local packages for later use

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

#4 2009-09-29 00:07:57

Chrysalis
Member
Registered: 2008-07-07
Posts: 155

Re: [SOLVED] storing local packages for later use

Might wanna clean the old pkgs from the cache first "pacman -Sc'

Offline

#5 2009-09-29 02:03:39

Pyntux
Member
From: Serbia
Registered: 2008-12-21
Posts: 391

Re: [SOLVED] storing local packages for later use

Does pacman -Sc delete just old packages?


I do not speak English, but I understand...

Offline

#6 2009-09-29 02:04:30

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: [SOLVED] storing local packages for later use

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

Board footer

Powered by FluxBB