You are not logged in.

#1 2011-10-11 16:33:04

MajinJoko
Member
Registered: 2007-08-15
Posts: 84

reinstalling every package and every dependencies [solved]

Good evening,

I have two arch installation, one 64bit on a pc and one 32bit on a virtual machine on another pc.
Today I messed up my 64bit-installation.

What I did was rsync-ing /var/lib/pacman/local/ from the 32 to the 64. (This is a very stupid thing. Please don't insult me. My friend did this cause I couldn't explain correctly what I want him to do).

After that I got lots of error of duplicate entries in database.
I remove the duplicate in /var/lib/pacman/local/ and pacman stop complaining.

But now a bigger sufference began.
Lots of application couldn't start due to library error. Some errors were like "error loading shared library blabla", some other were like "unable to find symbol".
After lot of work most of error was solved, but still I have a errors that makes gnome 3 broken. Anyway, now I am stucked cause even .xscreensession-error is not helpful.

An attempt I made was trying to re-install all the packages in the system. On the Italian wiki I found the commands:

pacman -Qqe > pkglist 
# pacman -S $(cat pkglist)

but is this command reinstalling every package in my system? Or it just reinstall the programs I installed, and skips all the dependencies?


I want to reinstall everything cause I think that the problem related to the libraries maybe could be solved reinstalling the proper package. But I don't know which one.

Any help would be very appreciate.


Thank you.

Last edited by MajinJoko (2011-10-12 16:45:52)

Offline

#2 2011-10-11 16:36:46

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: reinstalling every package and every dependencies [solved]

Try this one:

pacman -S $(pacman -Qq)

Offline

#3 2011-10-11 17:21:57

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: reinstalling every package and every dependencies [solved]

-Qq could return packages that pacman doesn't know about (e.g. anything built from the AUR)

comm -23 <(pacman -Qq) <(pacman -Qqm) | pacman -S -

Offline

#4 2011-10-12 16:38:43

MajinJoko
Member
Registered: 2007-08-15
Posts: 84

Re: reinstalling every package and every dependencies [solved]

Thank you very much.

I solved everything.
The command from falconindy works great!


Thank you!

Offline

#5 2011-10-12 18:05:24

Awebb
Member
Registered: 2010-05-06
Posts: 6,330

Re: reinstalling every package and every dependencies [solved]

Does it keep the information whether it's a dependancy or not?

Offline

#6 2011-10-12 18:09:47

MajinJoko
Member
Registered: 2007-08-15
Posts: 84

Re: reinstalling every package and every dependencies [solved]

I have no idea. How can I check?

The only thing I know is that this evening I tried to uninstall thunar but I was blocked cause it required by a xfce package..

Offline

#7 2011-10-12 22:19:32

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: reinstalling every package and every dependencies [solved]

Awebb wrote:

Does it keep the information whether it's a dependancy or not?

Yes.

Offline

Board footer

Powered by FluxBB