Determine repositories needed for content view, easily?

Latest response

When first installing a system if using a DVD the repo will show "anaconda" when using yum info but I am looking for a way to know which repositories I need to sync and publish in a content view for hosts to ensure we capture the "From repo" should there be future updates to those packages.

Is there an easy way to query this from a system, sure a nested command can match and parse, but if a system is first installed from DVD then the default "From repo" seems to always be anaconda.

Thanks

Responses

So if installing a standard RHEL7 operating system, then the rhel-7-server-rpms/7Server repo is probably your best bet. This is a rolling repository containing the latest updates for RHEL 7.

Just to note, this can be quite a large repository to sync initially. However, once you have this repository sync'd, you can create a range of content views relevant to your RHEL 7 systems.

Thanks, that is the default we use, also satellite-tools repository. Was curious then if there was a way though to easily parse out from satellite since it does inventory the RPMs then what repositories you likely would need. Might be an RFE for future incorporation to have the inventory then also tell you what unique repositories you will need and then also what RPMs in the rpmdb aren't contained in Red Hat hosted official repositories.

Thanks for the reply!

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.