package-management.rst
changeset 1989 20198cc725e6
parent 1977 2704ec7205a7
child 2144 f8891b4321f5
--- a/package-management.rst	Thu Jun 02 22:57:23 2016 +0300
+++ b/package-management.rst	Mon Jun 06 23:03:28 2016 +0300
@@ -54,10 +54,18 @@
 
 Find packages a file belong to
 ==============================
-::
+
+Find what package hold file among installed packages::
+
+  $ rpm -qf /usr/bin/free
+  $ zypper search -f stdlib.h
 
-  $ yum whatprovides stdlib.h
-  $ zypper search -f stdlib.h
+Find what package hold file among all packages from enabled repositories::
+
+  $ yum whatprovides '*/stdlib.h'
+
+  $ sudo yum install yum-utils           # old alternative
+  $ repoquery --whatprovides '*bin/grep'
 
 For ``pacman`` package system from ``pkgtools`` package::