You are not logged in.
Pages: 1
Topic closed
I noticed on my system a program which I didn't install explicitly (BTW, it is palimpsest). I couldn't find to which package it belongs: how can I do it?
Thanks
Last edited by snack (2010-02-09 10:56:28)
Offline
pkgfile from the pkgtools package.
Offline
Great! I didn't know pkgfile, it's awesome.
Thank you, Allan!
Offline
or...
pacman -Qo file
;P
Offline
or...
pacman -Qo file
;P
Right. My fault, I serched in the man page but didn' find it. Thank you, Vi0l0
Offline
or...
pacman -Qo file
;P
Not quite. pacman -Qo works only for files already installed. And you need to know their proper path (either relative or absolute).
pkgfile on the other hand looks up in its own packages database. So it works independently of the file being present. You need to keep the database current, of course, using pkgfile -u as root user.
Usage examples:
bp:~$ pacman -Qo /usr/bin/pkgfile
/usr/bin/pkgfile is owned by pkgtools 17-1
bp:~$ pacman -Qo pkgfile
error: failed to read file 'pkgfile': No such file or directory
bp:~$ pkgfile pkgfile
community/pkgtools
bp:~$ which evince
which: no evince in (/home/bp/bin:/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/opt/java/bin:/opt/java/jre/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core:/opt/qt/bin:/home/bp/neo)
bp:~$ PM -Qo evince
error: failed to read file 'evince': No such file or directory
bp:~$ PM -Qo /usr/bin/evince
error: failed to read file '/usr/bin/evince': No such file or directory
bp:~$ pkgfile evince
extra/evince
To know or not to know ...
... the questions remain forever.
Offline
Atleast in the latest version of pacman, you don't need to specify proper path to find a file.
$ pacman -Qo which
/usr/bin/which is owned by which 2.20-7
Offline
@ hashken, that's only for the files present in the $PATH. Any other files, you'll need to specify the full path.
Edit: Damnit, didn't notice the thread date.
Last edited by x33a (2014-10-11 08:01:56)
Offline
Offline
Pages: 1
Topic closed