b5media.com

Advertise with us

Enjoying this blog? Check out the rest of the Technology Channel Subscribe to this Feed

New Linux User

Finding what package owns a file

by George Bunyan on September 18th, 2006

One thing you will likely encounter is an unknown file with no manpage.

Fortunately tools such as dpkg-query and rpm exist.

You can use these to find out which package owns a file, for example
dpkg-query -S /bin/bash
bash: /bin/bash

The example above uses dpkg-query to find out which package installed the file /bin/bash, which, surprise surprise, is the bash package.

To do this with rpm you would do

rpm -qf /bin/bash

Happy package hunting,
George Bunyan

POSTED IN: General

0 opinions for Finding what package owns a file

  • No one has left a comment yet. You know what this means, right? You could be first!

Have an opinion? Leave a comment:




Check Spelling
Activate Spell Check while Typing