Feed on
Posts
Comments

rpm -qf equivalent in apt

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…

The following posts are interesting too

RSS feed | Trackback URI

Comments »

No comments yet.

Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.