You are not logged in.
Is this possible? Basically, I copied over my /var/cache/pacman/pkg from another machine to a fresh install to save re-downloading 1+ gigs of packages. Can pacman compare the installed packages to those in cache so I can see what I forget to install on the new machine (I got most of them)!
Last edited by graysky (2009-08-23 09:43:41)
Offline
The answer to your question is probably something along the lines of:
for pkg in /var/cache/pacman/pkg/*$(uname -m).pkg.tar.gz; do [[ -e /var/lib/pacman/local/$(basename ${pkg%-*}) ]] || echo $(basename $pkg); doneHowever, I'd suggest another approach. Create a list of explicitly installed packages on both systems and compare them.
To generate a list of explicitly installed packages you can use (on each machine):
pacman -Qeq >packagesAnd then you can easily compare the two lists with:
diff -up packages1 packages2Offline
Thanks very much!
Offline