Which package does a file belong to? – Use yum provides
Use ‘yum provides’ if you like to know which package a particular file belongs to. For example, if you like to know the name of the package that has the /etc/sysconfig/nfs file, do the following.
# yum provides /etc/sysconfig/nfs
Loaded plugins: langpacks, presto, refresh-packagekit
1:nfs-utils-1.2.3-10.fc15.x86_64 : NFS utilities and supporting clients and
: daemons for the kernel NFS server
Repo : fedora
Matched from:
Filename : /etc/sysconfig/nfs
1:nfs-utils-1.2.4-1.fc15.x86_64 : NFS utilities and supporting clients and
: daemons for the kernel NFS server
Repo : updates
Matched from:
Filename : /etc/sysconfig/nfs
1:nfs-utils-1.2.4-1.fc15.x86_64 : NFS utilities and supporting clients and
: daemons for the kernel NFS server
Repo : installed
Matched from:
Other : Provides-match: /etc/sysconfig/nfs


0 Comments
Post a Comment