find which rpm provided file

linux

To find which rpm provided the file example you simply enter:


rpm -qf /path/to/example