How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

April 2, 2012

Equivalent of rpm -qa in ubuntu

Filed under: Linux — Tags: , , , , — admin @ 3:04 pm

Well in rpm base distribution you may use this

rpm -qa /path/to/file
And you will have a answer like this :

rpm -qf /usr/bin/top
procps-3.2.7-11.1.el5

On a ubuntu server you should run
dpkg -S /path/to/file

dpkg -S /usr/bin/top
procps: /usr/bin/top

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress