You are not logged in.
I can query the files of packages that is installed on my system. But sometimes I want to know which package contains a file. For example:
A program complains about the libz.so.1, I want to find out which package contains the libz.so.1.
In fedora's yum, I can do that. But pacman can't do since there is no pacman -Ql like command that works for packages in repo.
I am curious why. When I looked into
/var/lib/pacman/local/
I can find a files file which has all the files.
But in
/var/lib/pacman/sync/
The packages do not have "files" file.
Last edited by helloworld1 (2011-01-04 21:46:56)
Offline
pacman -Qo
doesn't do what you need ?? You probably need to go through manpages of pacman.
If by repo you mean external repos then I am not sure if pacman handles it or not. but they are external and so pacman doesn't need to support them
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
pacman -Qo
doesn't do what you need ??
The problem is that pacman -Q only look up the locally installed packages. If I haven't installed, it cannot do.
-Q, --query
Query the package database. This operation allows you to view
installed packages and their files, ....
Last edited by helloworld1 (2011-01-04 21:38:04)
Offline
Aah ! I see what you want now.
I am not sure if this will work. But try the
pacman -Ssp
command and see if it works but I am not sure if it will print the files or just the info
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
@helloworld1 pkgfile from pkgtools packages can do that.
Give what you have. To someone, it may be better than you dare to think.
Offline
Try pkgfile from the community/pkgtools package if pacman -Qo fails. It can report packages some file belongs to even if it was not currently installed (through pacman).
Edit: Beaten by seconds!
Last edited by bernarcher (2011-01-04 21:42:49)
To know or not to know ...
... the questions remain forever.
Offline
Ah, thank you very much. That's exactly what I want.
Offline
http://testnet.har-ikkje.net/kittyfile/ … ry=*pacman (x86_64, db is usually updated every few days)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline