You are not logged in.

#1 2008-09-09 08:46:32

p.navid
Member
Registered: 2007-11-03
Posts: 14

Reinstall packages from a list file

Hi
I have figured a way for a fast installtion of Arch. I backup the list of packages using the following command:
pacman -Qq > pkglist
The problem is I don't know how to tell pacman to install the packages in the listed file in the fresh installation. Any ideas?

Offline

#2 2008-09-09 08:49:02

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Reinstall packages from a list file

cat pkglist | xargs pacman -S --noconfirm

Last edited by lucke (2008-09-09 08:51:02)

Offline

#3 2008-09-09 08:54:39

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

Re: Reinstall packages from a list file

You are probably better to use

pacman -Qqe

to list only packages that were explicitly installed.  That way the packages installed as dependencies, stay installed as dependencies. Then you can just

pacman -S $(cat pkglist)

Offline

#4 2008-09-09 08:57:06

p.navid
Member
Registered: 2007-11-03
Posts: 14

Re: Reinstall packages from a list file

Thanks dudes. You rock. Less than 5 minutes and two awesome reposnses. So proud to be an Archer smile

Offline

#5 2008-09-09 10:37:40

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Reinstall packages from a list file

You could also take a look at metapax (linked in my sig). There's a "--system-snapshot" option that should do what you want, and also rebuild any pkgs that you have installed that are no longer available in your repos so that you can reinstall them as well.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#6 2008-09-10 09:14:25

p.navid
Member
Registered: 2007-11-03
Posts: 14

Re: Reinstall packages from a list file

Thanks all. I'll give metapax a try. I added the useful information in the wiki entry.

Offline

Board footer

Powered by FluxBB