You are not logged in.
For example, I want to know which package that owns "convert", I can do this:
$ pacman -Qo convert
/usr/bin/convert is owned by imagemagick 6.7.1.6-1
However, what if I didn't install imagemagick package?
In Ubuntu, if a command doesn't exist, system will tell you what package do you need.
Is there any way to do it in Arch?
Further more, can we find a package according to a file? Cite a case:
$ pacman -Qo /lib/cpp
/lib/cpp is owned by gcc 4.6.1-2
It could be better if it works with AUR.
Last edited by ytj (2011-08-17 12:49:17)
Offline
Try "pkgfile" from the "pkgtools" package. It does not work with AUR packages, however.
To know or not to know ...
... the questions remain forever.
Offline
pkgfile, in the pkgtools package :
% pkgfile convert
extra/imagemagick
% pkgfile /lib/cpp
local/gcc-multilib
Offline
too slow
Last edited by skunktrader (2011-08-17 12:49:37)
Offline
Thanks to all for this quick replies.
Offline
In Ubuntu, if a command doesn't exist, system will tell you what package do you need.
Is there any way to do it in Arch?
# pkgfile includes a "command not found" hook for both zsh and bash.
# This will automatically run pkgfile whenever you run a command
# which the shell cannot find. Set CMD_SEARCH_ENABLED to 1 to
# enable this feature, or 0 to disable.
#
# Caveats
# Bash: requires bash >= 4.0
CMD_SEARCH_ENABLED=1
[karol@black ~]$ bsdiff
bsdiff may be found in the following packages:
community/bsdiff (4.3-6) : /usr/bin/bsdiff
Offline