Ubuntu: Determining the package origin of a file
If you are on an Ubuntu host and need to determine from which package a file originated, the ‘dpkg’ utility has this ability. For example, if you need to know which package the ‘mkpasswd’ binary came from: $ which mkpasswd /usr/bin/mkpasswd $ dpkg -S /usr/bin/mkpasswd whois: /usr/bin/mkpasswd Which tell us it came from the ‘whois’ … Ubuntu: Determining the package origin of a file