dpkg-query does not use a partial pathname as a pattern to search.
Example:
=> which exiftool
/bin/exiftool
=> dpkg-query --search `which exiftool`
dpkg-query: no path found matching pattern /bin/exiftool
=> dlocate `which exiftool`
libimage-exiftool-perl: /usr/bin/exiftool
=> dpkg-query --search /usr/bin/exiftool
libimage-exiftool-perl: /usr/bin/exiftool
=> /bin/ls -lt /usr/bin/exiftool /bin/exiftool
-rwxr-xr-x 1 root root 320936 Feb 2 19:43 /bin/exiftool
-rwxr-xr-x 1 root root 320936 Feb 2 19:43 /usr/bin/exiftool
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 491 |
Nodes: | 16 (2 / 14) |
Uptime: | 107:11:11 |
Calls: | 9,684 |
Calls today: | 5 |
Files: | 13,725 |
Messages: | 6,175,496 |
Posted today: | 1 |