How to find what RPM package provides a system executable with Fedora

fedorarpm

Want package provides gnome-sound-recorder in Fedora?

Best Answer

Pass -f when querying the rpmdb to specify a file to look for.

rpm -qf /path/to/executable
rpm -qf $(which executable)

If the file is not installed then ask yum.

yum whatprovides '*bin/executable'
Related Question