What is the command to list what rpms could provide a particular file: the rpm that provide files already installed or rpms that could provide files that are not installed?
Linux – rpm that provides a file
linuxrpm
Related Topic
- Centos – How to list RPM dependencies
- Renaming files that are about to be overwritten by an RPM
- Reinstall file from RPM
- Can one require “this OR that” package in an RPM spec file
- Rpm -ivh, failed dependency already installed
- Getting diffs for file changes detected by rpm -V
- RPM Spec How to specify in package so that previous RPM is removed
- Linux – RPM ignore conflicts
Best Answer
For already installed files/packages:
For not-yet-installed files & packages:
Note that "yum whatprovides " is a pattern match, so if you're not sure where the file you're looking for would live in the directory structure just surround it with quotes and asterisks:
Similarly if you're sure what you're looking for is a binary you can do: