You are not logged in.

#1 2009-02-04 01:19:39

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 331
Website

Pacman upgrade issue

I am looking to upgrade my home PC, even moving from 32 bit to 64.

All is fine so far, I have a complete machine, I even know how to transfer users so that they don't know the harware has changed.

Where I do have a bit of an issue is with installing all the same packages.

I can generate a line seperated file of all the packages installes by using the following command:

pacman -Q | cut -d ' ' -f 1 > packages.txt

Now all I need to do if get the file accross to the new hardware and then get pacman to install all the packages in the file. The only problem is that pacman does not appear to want  to read a list from a file, which is a shame as that would really help here and also in automated installs.

Any suggestions?


Kind regards

Benedict White

Offline

#2 2009-02-04 01:52:04

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: Pacman upgrade issue

pacman -S $(cat file)

and your first command is the same as pacman -Qq

Last edited by rson451 (2009-02-04 01:52:53)


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#3 2009-02-04 06:23:00

ibendiben
Member
Registered: 2007-10-10
Posts: 519

Re: Pacman upgrade issue

I would use pacman -Qe here, to exclude dependencies.
Else all packages, including dependencies are going to be installed explicit.
Pacman resolves the dependencies automatically.

Offline

#4 2009-02-25 09:59:24

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 331
Website

Re: Pacman upgrade issue

Many thanks for the help! That makes installing replica systems nice and easy.


Kind regards

Benedict White

Offline

#5 2009-02-25 21:48:00

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Pacman upgrade issue

ibendiben wrote:

I would use pacman -Qe here, to exclude dependencies.
Else all packages, including dependencies are going to be installed explicit.
Pacman resolves the dependencies automatically.

Are you sure? I believe the install reason (explicit vs dependency) is preserved on upgrade/reinstall.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB