17

I've come from Fedora and am trying out Arch Linux.

I was wondering if the packager 'pacman' contains functionality like that provided by 'yum whatprovides':

provides or whatprovides
              Is  used  to  find out which package provides some feature or file. Just use a specific name or a file-
              glob-syntax wildcards to list the packages available or installed that provide that feature or file.
12

I believe pkgfile or pkgfile -s are what you're looking for. For further reference I will direct you to here. The link will show you what other commands you might need a translation for. I hope it helps.

| improve this answer | |
  • and for local installed packages should be pkgfile -U – dag729 Jan 14 '10 at 17:10
5

You can also use pacman -Foy file_name, as suggested here: https://unix.stackexchange.com/a/14865/92541

| improve this answer | |
3

pacman -F file_name for Pacman v5.2.1 - libalpm v12.0.1

| improve this answer | |
1

With latest pacman, the correct command is pacman -Fly file_name.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.