Google Site SearchFN Site Search FN Blog Login FN Blog Login
Site Navigation:

All you have to know about RPM

by Alexandre de Abreu

How can I find from which package the file /usr/bin/smbmount belongs?

This command really helps when you don't know if a program is a part of some RPM package or when you know only what program or file you are needing but not the package. Here's RPM the command:

rpm -qf /usr/bin/smbmount

In this case it will returns the package name that contains the smbmount file:

# rpm -qf /usr/bin/smbmount

If the file is not owned by any package RPM will returns an error message.