You are not logged in.

#1 2010-04-01 19:26:45

rangalo
Member
Registered: 2008-06-25
Posts: 108
Website

Is there a way to export and then import installed package list ?

Hi,

I have a 32 bit Arch system. On this system I have installed almost all the packages that I require. Now, I want to install Arch64 on another system.
It would be difficult to install everything which is on the other system on the newer one.

I am sure there is some way to export the list of installed (and may be also removed) packages and then import the list on another system.

Debian has something like

dpkg --get-selections 

and 

dpkt --set-selections

regards,
Hardik

Offline

#2 2010-04-01 19:39:38

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: Is there a way to export and then import installed package list ?

With pacman -Qq you see all the packages installed in the system.

Offline

#3 2010-04-01 19:47:41

rangalo
Member
Registered: 2008-06-25
Posts: 108
Website

Re: Is there a way to export and then import installed package list ?

thanks flamelab,

this addresses the first part of exporting the packages. What about importing ?

Offline

#4 2010-04-01 19:51:00

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: Is there a way to export and then import installed package list ?

What do you mean ? smile

Offline

#5 2010-04-01 19:51:19

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,799
Website

Re: Is there a way to export and then import installed package list ?

this has been asked/answered many times.  it's on some pacman-related wiki if i remember.

# put all explicitly installed packages (minus AUR) into a file
# can be run as user
pacman -Qqe | grep -Fvx "$(pacman -Qqm)" > ./file

# reinstall from said file (deps will be pulled in automatically)
# must run as root
xargs pacman -S --needed --noconfirm < ./file

smile.

/edit: removed useless use of cat.

Last edited by brisbin33 (2010-04-01 19:55:05)

Offline

#6 2010-04-01 20:17:54

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: Is there a way to export and then import installed package list ?

s/xargs// I believe should work

Offline

#7 2010-04-01 21:05:53

rangalo
Member
Registered: 2008-06-25
Posts: 108
Website

Re: Is there a way to export and then import installed package list ?

Thanks, I will give it a try

Offline

#8 2015-08-17 18:23:00

ob7
Member
Registered: 2015-08-17
Posts: 7

Re: Is there a way to export and then import installed package list ?

Also note, that if you have multilib support enabled on the exporting system, but do not have it enabled on the importing system, when you go to do the import, it will fail.  So enable multilib support on the importing system first, if the exporting system had it enabled. https://wiki.archlinux.org/index.php/Multilib

Offline

#9 2015-08-17 18:30:53

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,907
Website

Re: Is there a way to export and then import installed package list ?

Welcome to the Arch Linux forums, ob7.

Please take a moment to read through the forum etiquette: https://wiki.archlinux.org/index.php/Forum_etiquette

In particular, please do not "necrobump" old threads (this one is over five years old).

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB