Toggen Blog

Tech tips

Articles

Latest

Access

Blog History

Ubuntu equivalent to rpm -qf /path/and/file

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