You are not logged in.

#1 2006-09-07 21:03:11

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Pacman's important files

I'm redoing my backup scheme, and what important files are there for pacman?  I've found /var/lib/pacman, and I suppose /var/cache/pacman is useful for a fast reinstall if need be.  Is there anything else I need for a fast restoration?  Also, where does pacman store what packages are explicitly installed (as in the ones shown by "pacman -Qe"), much like /var/lib/portage/world in Gentoo.  The reason I ask for this specificly is because I find the easiest way to restore (other than cp or tar) is to just have a nice list of packages I explicitly installed and just plug that straight back into the package manager and let it do the rest.


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#2 2006-09-07 21:20:11

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Pacman's important files

/var/lib/pacman/local is where all the locally installed package data resides. I run a backup script every night that spits out all installed packages into a a space separated list:

pacman -Q | cut -d' ' -f1 | paste -s | sed 's|s| |g' > filelist

then when you go to restore, all you have to do is a pacman -Sy `cat filelist`

Offline

#3 2006-09-07 21:28:58

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: Pacman's important files

Cheers.  It's good to know I'm definitely getting everything, and cheers for the script smile


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#4 2006-09-08 03:44:26

allucid
Member
Registered: 2006-01-06
Posts: 259

Re: Pacman's important files

Penguin wrote:

/var/lib/pacman/local is where all the locally installed package data resides. I run a backup script every night that spits out all installed packages into a a space separated list:

pacman -Q | cut -d' ' -f1 | paste -s | sed 's|s| |g' > filelist

then when you go to restore, all you have to do is a pacman -Sy `cat filelist`

would it be better to do a -Qe (instead of just -Q) and let pacman pull in the deps when you reinstall or will it not make a difference?

Offline

#5 2006-09-08 07:41:35

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: Pacman's important files

I actually just read it as -Qe, didn't notice it was only -Q..  Doh!  Works great with -Qe mind you.


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#6 2006-09-08 09:53:22

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Pacman's important files

-Qe? I don't understand. Q is for a general installed package query, e modifies it to display orphaned packages, or those not explicitly installed by another package and is not a dependency. The results are different.

Offline

#7 2006-09-08 10:57:52

sebcactus
Member
From: Germany
Registered: 2005-01-27
Posts: 277

Re: Pacman's important files

But if you only install the packages found in -Qe, the others (in -Q) will be installed too, because they are dependencies!

Offline

#8 2006-09-08 17:05:23

allucid
Member
Registered: 2006-01-06
Posts: 259

Re: Pacman's important files

Penguin wrote:

-Qe? I don't understand. Q is for a general installed package query, e modifies it to display orphaned packages, or those not explicitly installed by another package and is not a dependency. The results are different.

I know the results are different. I thought packages that you explicitly install are internally represented differently by pacman than those that are pulled in as deps. It appears this is not true, though.

Offline

Board footer

Powered by FluxBB