How to find list of packages available from a specific repository?
Environment
- Red Hat Satellite 6
- Red Hat Enterprise Linux
Issue
- How to find list of packages available in a specific repository from the client CLI?
Resolution
-
If the client system is registered to Satellite server, use
--enable-repoanddisable-repooptions along with yum list and that could give you list of packages installed and packages that could be installed. -
Example:
[root@client ~]# yum --disablerepo=* --enablerepo=rhel-6-server-els-optional-rpms list
or To search for a specific package in enabled and disabled repository.
[root@host ~]# yum --disablerepo=* --enablerepo=rhel-6-server-els-optional-rpms search httpd
Diagnostic Steps
- Output of the command from the Resolution section.
[root@client ~]# yum --disablerepo=* --enablerepo=rhel-6-server-els-optional-rpms search httpd
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, security, subscription-manager
rhel-6-server-els-optional-rpms | 2.1 kB 00:00
=============================================================================================== N/S Matched: httpd ================================================================================================
libmicrohttpd-devel.i686 : Development files for libmicrohttpd
libmicrohttpd-devel.x86_64 : Development files for libmicrohttpd
libmicrohttpd-doc.noarch : Documentation for libmicrohttpd
httpd-devel.i686 : Development interfaces for the Apache HTTP server
httpd-devel.x86_64 : Development interfaces for the Apache HTTP server
httpd-manual.noarch : Documentation for the Apache HTTP server
libmicrohttpd.i686 : Lightweight library for embedding a webserver in applications
libmicrohttpd.x86_64 : Lightweight library for embedding a webserver in applications
Name and summary matches only, use "search all" for everything.
Uploading Enabled Repositories Report
[root@client ~]#
SBR
Product(s)
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.