You are not logged in.

#1 2011-02-11 14:56:54

estevao
Member
From: Vitória, ES - Brazil
Registered: 2009-10-13
Posts: 100
Website

Pacman isn't showing all the installed packages

Hey guys!

Since last week pacman isn't showing all the installed packages in my system. If I issue the command pacman -Q it just returns the following packages:

a52dec 0.7.4-4
acl 2.2.49-2
alsa-lib 1.0.23-2
atk 1.32.0-1
attr 2.4.44-2
avahi 0.6.28-1
bash 4.1.009-3
bzip2 1.0.6-1
cairo 1.10.2-1
cairo-perl 1.061-3
compositeproto 0.4.2-1
coreutils 8.10-1
cracklib 2.8.18-1
damageproto 1.2.1-1
db 5.1.19-3
dbus 1.4.1-1
dbus-core 1.4.1-1
desktop-file-utils 0.18-1
e2fsprogs 1.41.14-1
expat 2.0.1-6
faac 1.28-2
ffmpeg 20110121-2
filesystem 2010.12-1
findutils 4.4.2-3
fixesproto 4.1.2-1
fontconfig 2.8.0-1
freetype2 2.4.4-2
gcc-libs 4.5.2-6
gdbm 1.8.3-8
gdk-pixbuf2 2.22.1-1
gettext 0.18.1.1-1
glib-perl 1.223-2
glib2 2.26.1-1
glibc 2.13-1
gmp 5.0.1-2
gnutls 2.10.4-1
gtk2 2.22.1-1
gtk2-perl 1.222-2
gzip 1.4-2
heimdal 1.3.3-4
iana-etc 2.30-1
imagemagick 6.6.7.3-1
inputproto 2.0.1-1
kbproto 1.0.5-1
lame 3.98.4-1
lcms 1.19-1
libarchive 2.8.4-2
libcap 2.20-1
libcups 1.4.6-1
libdaemon 0.14-1
libdatrie 0.2.4-1
libdrm 2.4.23-1
libdv 1.0.0-3
libdvdread 4.1.3-2
libfetch 2.33-1
libgcrypt 1.4.6-1
libgl 7.10-1
libgpg-error 1.9-2
libice 1.0.7-1
libjpeg 8.3.0-1
libldap 2.4.23-1
libmp4v2 1.9.1-1
libmpeg2 0.5.1-1
libogg 1.2.2-1.1
libpng 1.4.5-1
libsasl 2.1.23-5
libsm 1.2.0-1
libtasn1 2.8-1
libthai 0.1.14-1
libtheora 1.1.1-1
libtiff 3.9.4-1
libtool 2.4-2
libva 1.0.8-1
libvdpau 0.4.1-1
libvorbis 1.3.2-1
libvpx 0.9.5-2
libx11 1.4.1-1
libxau 1.0.6-1
libxaw 1.0.9-1
libxcb 1.7-1
libxcomposite 0.4.3-1
libxcursor 1.1.11-1
libxdamage 1.1.3-1
libxdmcp 1.1.0-1
libxext 1.2.0-1
libxfixes 4.0.5-1
libxft 2.2.0-1
libxi 1.4.1-1
libxinerama 1.1.1-1
libxml2 2.7.8-1
libxmu 1.1.0-1
libxpm 3.5.9-1
libxrandr 1.3.1-1
libxrender 0.9.6-1
libxt 1.0.9-1
libxv 1.0.6-1
libxxf86vm 1.1.1-1
linux-api-headers 2.6.37-1
lzo2 2.04-1
mjpegtools 1.9.0-4
ncurses 5.7-4
opencore-amr 0.1.2-1
openjpeg 1.3-3
openssl 1.0.0.d-1
orc 0.4.11-1
pacman 3.4.3-1
pacman-cage 2.9.8.2-4
pacman-mirrorlist 20101223-1
pam 1.1.3-1
pango 1.28.3-1
pango-perl 1.221-3
pcre 8.12-1
perl 5.12.3-1
perl-anyevent 5.24-1
perl-event 1.13-3
perl-event-execflow 0.64-2
perl-gtk2-ex-formfactory 0.66-2
perl-libintl-perl 1.20-2
pixman 0.20.2-1
popt 1.16-3
randrproto 1.3.2-1
readline 6.1.002-2
renderproto 0.11.1-1
schroedinger 1.0.10-1
sdl 1.2.14-6
shadow 4.1.4.2-4
shared-mime-info 0.90-1
sqlite3 3.7.5-1
tar 1.25-1
texinfo 4.13a-5
transcode 1.1.5-5
tzdata 2010o-1
util-linux-ng 2.18-4
videoproto 2.3.1-1
x264 20110115-1
xcb-proto 1.6-2
xextproto 7.1.2-1
xf86vidmodeproto 2.3.1-1
xineramaproto 1.2.1-1
xproto 7.0.20-1
xvidcore 1.2.2-1
xz 5.0.1-1
zlib 1.2.5-3


Here you can see a shot of my /var/lib/pacman/local directory, containing just a few directories related to the packages above.

pacmanpackages.th.png



I have a lot more installed in my system, eg. the holl KDE system.

Is there a command/workaround to make these missing packages appear again in pacman?!


Thanks in advance.

Last edited by estevao (2011-02-11 17:29:52)

Offline

#2 2011-02-11 16:05:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Pacman isn't showing all the installed packages

First, please edit your post and enclose the list of packages in [ code ] tags https://bbs.archlinux.org/help.php#bbcode to make it easier to read.
Pretty please.

Offline

#3 2011-02-11 17:31:03

estevao
Member
From: Vitória, ES - Brazil
Registered: 2009-10-13
Posts: 100
Website

Re: Pacman isn't showing all the installed packages

karol wrote:

First, please edit your post and enclose the list of packages in [ code ] tags https://bbs.archlinux.org/help.php#bbcode to make it easier to read.
Pretty please.

Done! Thanks.

Last edited by estevao (2011-02-11 17:33:42)

Offline

#4 2011-02-13 16:18:56

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: Pacman isn't showing all the installed packages

estevao wrote:

I have a lot more installed in my system, eg. the holl KDE system.

Do you have a list of "missing" packages? If so, something like this:

pacman -Syyu
for pkg in $(cat /path/to/missing-pkg-list); do
         pacman -Sf $pkg
done

should fix you installation.

If you don't have this list, then I am afraid you have only one option: reinstall smile


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#5 2011-02-13 17:24:02

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: Pacman isn't showing all the installed packages

Leonid.I wrote:

If you don't have this list, then I am afraid you have only one option: reinstall smile

I seem to remember a script that someone posted that parsed the pacman.log to generate a list automatically.  You probably can do some searching to track it down (or rewrite something similar if you know how) prior to going through with a complete reinstall.

Offline

#6 2011-02-13 18:10:04

Spider.007
Member
Registered: 2004-06-20
Posts: 1,176

Re: Pacman isn't showing all the installed packages

mcmillan wrote:
Leonid.I wrote:

If you don't have this list, then I am afraid you have only one option: reinstall smile

I seem to remember a script that someone posted that parsed the pacman.log to generate a list automatically.  You probably can do some searching to track it down (or rewrite something similar if you know how) prior to going through with a complete reinstall.

That is quite easy to write:

grep -E '] (installed|upgraded)' /var/log/pacman.log |cut -d' ' -f4

which makes the complete reinstall code something like

grep -E '] (installed|upgraded)' /var/log/pacman.log |cut -d' ' -f4|while read p; do pacman -Sf $p ; done

Offline

#7 2011-02-13 18:43:19

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

Re: Pacman isn't showing all the installed packages

Spider.007 wrote:
mcmillan wrote:
Leonid.I wrote:

If you don't have this list, then I am afraid you have only one option: reinstall smile

I seem to remember a script that someone posted that parsed the pacman.log to generate a list automatically.  You probably can do some searching to track it down (or rewrite something similar if you know how) prior to going through with a complete reinstall.

That is quite easy to write:

grep -E '] (installed|upgraded)' /var/log/pacman.log |cut -d' ' -f4

which makes the complete reinstall code something like

grep -E '] (installed|upgraded)' /var/log/pacman.log |cut -d' ' -f4|while read p; do pacman -Sf $p ; done

That'll fail to deal with removed packages. I can't find the script on the wiki, so here it is off my hdd:

#!/bin/awk -f

$3 ~ /^(installed|upgraded)$/ {
  pkg[$4] = 1
  next
}

$3 == "removed" {
  pkg[$4] = 0
}

END {
  for (i in pkg) if (pkg[i]) print i
}

Offline

#8 2011-02-13 21:15:35

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: Pacman isn't showing all the installed packages

Offline

#9 2011-02-13 21:18:33

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: Pacman isn't showing all the installed packages

mcmillan wrote:

You probably can do some searching to track it down (or rewrite something similar if you know how) prior to going through with a complete reinstall.

... which (complete reinstall) will be required with high probability, since all the solutions proposed above will most likely break the system smile


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#10 2011-02-13 22:01:20

Spider.007
Member
Registered: 2004-06-20
Posts: 1,176

Re: Pacman isn't showing all the installed packages

Leonid.I wrote:
mcmillan wrote:

You probably can do some searching to track it down (or rewrite something similar if you know how) prior to going through with a complete reinstall.

... which (complete reinstall) will be required with high probability, since all the solutions proposed above will most likely break the system smile

Arch Linux is more than just GNU/Linux -- it's an adventure
I think your signature is either too sarcastic, or too much in contrast with what you are posting here. A damaged database is really no big deal, and the only things that the proposed solutions attempt to do is that pacman re-installs a package (which changes close to nothing in your actual installation) and then write that update to its database.

I do not agree with your statement that the probability of a required reinstall are high. Actually, I would say they are pretty low

Offline

#11 2011-02-14 03:52:57

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: Pacman isn't showing all the installed packages

Spider.007 wrote:
Leonid.I wrote:
mcmillan wrote:

You probably can do some searching to track it down (or rewrite something similar if you know how) prior to going through with a complete reinstall.

... which (complete reinstall) will be required with high probability, since all the solutions proposed above will most likely break the system smile

Arch Linux is more than just GNU/Linux -- it's an adventure
I think your signature is either too sarcastic, or too much in contrast with what you are posting here. A damaged database is really no big deal, and the only things that the proposed solutions attempt to do is that pacman re-installs a package (which changes close to nothing in your actual installation) and then write that update to its database.

I do not agree with your statement that the probability of a required reinstall are high. Actually, I would say they are pretty low

There is nothing sarcastic about my sig. Indeed, what would be the fun of using a system, which never breaks?

Regarding the probability of a reinstall either my opinion, or yours is irrelevant for the topic of this discussion.

Finally, I would like to draw your attention to the little thingie in the end of my post: ":)" . It's called smiley and was  put there for a reason, you know...


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

Board footer

Powered by FluxBB