You are not logged in.
Pages: 1
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
/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
Cheers. It's good to know I'm definitely getting everything, and cheers for the script
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
/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
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
-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
But if you only install the packages found in -Qe, the others (in -Q) will be installed too, because they are dependencies!
Offline
-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
Pages: 1