You are not logged in.

#1 2009-11-05 10:18:43

christooss
Member
Registered: 2008-08-18
Posts: 71

Reinstall the installed packages

hi

I have dual boot system Ubuntu + Arch linux and I wanted to configure arch through chroot. unfortunatly I forgot to mount /dev and /proc so it got some errors during upgrade.

/tmp/alpm_xXzQ7F/.INSTALL: line 7: /dev/null: Permission denied

or

/sbin/mkinitcpio: line 253: /dev/null: Permission denied

I didn't start the system yet but I would like to reinstall packages if its posible. I found this  command

pacman -S $(pacman -Qq | grep -v "$(pacman -Qmq)")

and it returns

error: no targets specified (use -h for help)

which is not so strange cause 

pacman -Qmq

returns nothing which is strange smile

Any help would be apriciated.

Offline

#2 2009-11-05 18:07:33

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: Reinstall the installed packages

The "target" for your command is missing, s/b:

pacman -S $(pacman -Qq | grep -v "$(pacman -Qmq)" >pkglist)

This command is used to generate a list of installed packages such that they can be re-installed by pacman:

#pacman -S $(cat pkglist)

....EDIT
This pkglist has to be accessed possibly through usb flash such that the re-install is accomplished for the packages in the pkglist.

Please google "re-install pacman packages" for more accurate info( my info from memory).

Your /var/cache/pacman/pkg may not contain the desired packages altho I have no reason to believe it won't.

Last edited by lilsirecho (2009-11-05 18:22:25)


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#3 2009-11-05 19:14:59

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: Reinstall the installed packages

lilsirecho wrote:
pacman -S $(pacman -Qq | grep -v "$(pacman -Qmq)" >pkglist)

You mean

pacman -Qq | grep -v "$(pacman -Qmq)" >pkglist

?

Offline

#4 2009-11-05 20:10:58

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

Re: Reinstall the installed packages

didn't read the whole thrad but... use -vx to match whole lines, otherwise you could omit package foo-bar if package foo happens to be foreign.

pacman -Qq | grep -vx "$(pacman -Qqm)" | xargs pacman -S

should reinstall your system.

Last edited by brisbin33 (2009-11-05 20:11:43)

Offline

Board footer

Powered by FluxBB