rpm -qf equivalent in apt
Apr 21st, 2009 by Jason
Those who migrate to Debian variant from Red Hat will be missing the convenient of rpm -qf.
For those of you who don’t know what is rpm -qf <filename>, this command is very useful if you used rpm package management system. It will tell you which package manage that file.
Many people are not aware of the Debian alternative for rpm -qf. First you need to install apt-file by using the following command.
- -sudo apt-get install apt-file
Now you can search the package of the file by using:
- sudo apt-file search –fixed-string $<filename>
That’s it! I hope this will help you in your troubleshooting, debugging, resolving version conflicts, etc…
No comments yet.