How to find out which rpm package provides a file that you need.

Posted: February 5, 2014. At: 6:07 PM. This was 4 years ago. Post ID: 6946
Page permalink.
WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters. These cookies expire two weeks after they are set.

How to find out what rpm package provides a file that you need.

The yum provides command is useful for finding out this information. You may use wildcards to search for a file, this can make finding it easier.

[[email protected] jackhammer]$ yum provides */redhat**.jpg
Loaded plugins: langpacks
nagios-3.5.1-4.fc20.x86_64 : Nagios monitors hosts and services and yells if somethings breaks
Repo        : fedora
Matched from:
Filename    : /usr/share/nagios/html/images/logos/redhat.jpg

stardict-3.0.4-7.fc20.x86_64 : A powerful dictionary platform written in GTK+2
Repo        : fedora
Matched from:
Filename    : /usr/share/stardict/dic/stardict-dict/res/redhat_logo.jpg

Here is another example.

[[email protected] ~]$ yum provides */
Loaded plugins: langpacks
glibc-2.18-11.fc20.i686 : The GNU libc libraries
Repo        : fedora
Matched from:
Filename    : /lib/

glibc-2.18-12.fc20.i686 : The GNU libc libraries
Repo        : updates
Matched from:
Filename    : /lib/

This is another way to search the rpm database for certain packages.

[[email protected] ~]$ yum search redhat
Loaded plugins: langpacks
======================================================= N/S matched: redhat =======================================================
publican-redhat.noarch : Common documentation files for RedHat
perl-CPANPLUS-Dist-Fedora.noarch : CPANPLUS backend to build Fedora/RedHat RPMs
pybugz.noarch : Command line interface for Bugzilla written in Python
python-rhsm.x86_64 : A Python library to communicate with a Red Hat Unified Entitlement Platform
redhat-lsb.i686 : Implementation of Linux Standard Base specification
redhat-lsb.x86_64 : Implementation of Linux Standard Base specification
redhat-lsb-core.i686 : LSB Core module support
redhat-lsb-core.x86_64 : LSB Core module support
redhat-lsb-cxx.i686 : LSB CXX module support
redhat-lsb-cxx.x86_64 : LSB CXX module support
redhat-lsb-desktop.i686 : LSB Desktop module support
redhat-lsb-desktop.x86_64 : LSB Desktop module support
redhat-lsb-languages.i686 : LSB Languages module support
redhat-lsb-languages.x86_64 : LSB Languages module support
redhat-lsb-printing.i686 : LSB Printing module support
redhat-lsb-printing.x86_64 : LSB Printing module support
redhat-lsb-submod-multimedia.i686 : LSB Multimedia submodule support
redhat-lsb-submod-multimedia.x86_64 : LSB Multimedia submodule support
redhat-lsb-submod-security.i686 : LSB Security submodule support
redhat-lsb-submod-security.x86_64 : LSB Security submodule support
redhat-lsb-supplemental.x86_64 : LSB supplemental dependencies required by LSB certification tests
redhat-lsb-trialuse.i686 : LSB Trialuse module support
redhat-lsb-trialuse.x86_64 : LSB Trialuse module support
redhat-menus.noarch : Configuration and data files for the desktop menus
redhat-rpm-config.noarch : Red Hat specific rpm configuration files
rhn-client-tools.noarch : Support programs and libraries for Red Hat Satellite or Spacewalk
rhnsd.x86_64 : Spacewalk query daemon
yum-rhn-plugin.noarch : Spacewalk support for yum

  Name and summary matches only, use "search all" for everything.

There is also the yum search all command that allows full searching of all rpm packages.

[[email protected] ~]$ yum search all ssh-client
Loaded plugins: langpacks
==================================================== Matched: ssh-client ====================================================
gsi-openssh.x86_64 : An implementation of the SSH protocol with GSI authentication
gsi-openssh-clients.x86_64 : SSH client applications with GSI authentication
openssh.x86_64 : An open source implementation of SSH protocol versions 1 and 2
openssh-clients.x86_64 : An open source SSH client applications

These commands make finding files on your Fedora Linux machine even easier than before.

No comments have been made. Use this form to start the conversation :)

Leave a Reply