Find packages a file belong to.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 30 May 2016 00:43:32 +0300
changeset 1977 2704ec7205a7
parent 1976 97a275f76931
child 1978 2e9097b2426d
Find packages a file belong to.
package-management.rst
--- a/package-management.rst	Sun May 29 22:12:07 2016 +0300
+++ b/package-management.rst	Mon May 30 00:43:32 2016 +0300
@@ -52,3 +52,14 @@
 
   $ dpkg -l
 
+Find packages a file belong to
+==============================
+::
+
+  $ yum whatprovides stdlib.h
+  $ zypper search -f stdlib.h
+
+For ``pacman`` package system from ``pkgtools`` package::
+
+  $ pkgfile -si stdlib.h
+