In RPM based distros you can issue the command
rpm -qf /usr/bin/dig
and it will return the installation package name
I don’t know if this is the ‘proper’ way to do it but it works:
dpkg-query -S dig | grep /usr/bin/dig dnsutils: /usr/bin/dig
The Practical Application of Linux and Opensource Technology, and Other Stuff
In RPM based distros you can issue the command
rpm -qf /usr/bin/dig
and it will return the installation package name
I don’t know if this is the ‘proper’ way to do it but it works:
dpkg-query -S dig | grep /usr/bin/dig dnsutils: /usr/bin/dig
Posted in GNU/Linux.
– May 6, 2009
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.
Just found your page, and I am enjoying it so far.. Just wanted to note, using dpkg, you can specify the path to the file to find the package that provides it;
$ dpkg -S /usr/bin/dig
dnsutils: /usr/bin/dig
or
$ dpkg -S `which dig`
dnsutils: /usr/bin/dig
Same results, just a little less to type.