You are not logged in.

#1 2010-12-01 02:54:37

Blasting
Member
Registered: 2010-12-01
Posts: 2

[SOLVED] "Clone" packages on comp #1 to comp #2?

I have a dilemma that's kinda hard to search for on the archlinux forums.

I have an old archlinux install on computer #1, and now I have a new clean install on computer #2, is there any way for me to install all the packages computer #1 has on computer #2 with relative ease? Doing it manually would take forever.

Last edited by Blasting (2010-12-01 04:23:03)

Offline

#2 2010-12-01 03:06:57

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

Re: [SOLVED] "Clone" packages on comp #1 to comp #2?

# comp 1
pacman -Qqe > installed.txt

# comp 2
pacman -S $(cat installed.txt)

Not the -Qe lists only "explicitly installed" packages.  That way, dependencies stay installed as dependencies.

Copy all the files from /var/cache/pacman/pkg from comp 1 to comp 2 to prevent having to download them again.

Offline

#3 2010-12-01 03:16:26

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: [SOLVED] "Clone" packages on comp #1 to comp #2?

To add to Allan's response, if you have packages that you installed from the AUR or otherwise aren't in the repositories you can find these with pacman -Qemq >aur_pkg.txt and should remove those from the other file list.

Last edited by mcmillan (2010-12-01 03:18:03)

Offline

#4 2010-12-01 04:22:27

Blasting
Member
Registered: 2010-12-01
Posts: 2

Re: [SOLVED] "Clone" packages on comp #1 to comp #2?

Worked like a charm, thanks alot! smile

Offline

Board footer

Powered by FluxBB