ubuntu: look up package by file
authorPhilip Durbin <philipdurbin@gmail.com>
Wed, 17 Apr 2019 11:40:42 +0000 (07:40 -0400)
committerPhilip Durbin <philipdurbin@gmail.com>
Wed, 17 Apr 2019 11:40:42 +0000 (07:40 -0400)
ubuntu.mdwn

index 7080e1e..eae7123 100644 (file)
@@ -15,6 +15,12 @@ https://help.ubuntu.com/community/AptGet/Howto
     # show files owned by a package
     dpkg --listfiles package_name
 
+    # show which package owns a file
+    dpkg -S /usr/bin/pdftoppm
+
+    # show which package will own a file
+    apt-file find /usr/bin/convert
+
     # resynchronize the package index files from their sources
     apt-get update