# HG changeset patch # User Oleksandr Gavenko # Date 1465243408 -10800 # Node ID 20198cc725e69f4a7681a7ba8c6949051512abe0 # Parent 736bf9acc20f3e46f7ca5b754fd6648785e0a8d0 yum whatprovides. diff -r 736bf9acc20f -r 20198cc725e6 package-management.rst --- 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::