Why there are Exclamation mark ( ! ) in front of repository id's when running yum on clients registered with Red Hat Satellite 6?
Environment
- Red Hat Satellite 6.1
- Yum
Issue
- Why there are Exclamation mark in front of pulp repository names on Client system's registered with Red Hat Satellite 6 ?
# yum repolist
Loaded plugins: product-id, search-disabled-repos, subscription-manager
repo id repo name status
!rhel-7-server-extras-rpms/x86_64 Red Hat Enterprise Linux 7 Server - Extras (RPMs) 188
!rhel-7-server-optional-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - Optional (RPMs) 8483
!rhel-7-server-rh-common-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - RH Common (RPMs) 183
!rhel-7-server-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server (RPMs) 10643
repolist: 19497
Resolution
- As per
yumMan pageyum repolistoutput's first column will start with a '!' if the repo. has metadata that is expired. - This has been purposefully set to be expired, so it re-downloads the repomd.xml file (which is very small) so that the repo is always be up to date.
Root Cause
- When Content view's are promoted to a newer version with changes,the clients are not able to see the changes unless a cache on the client is manually cleared or is regenerated by yum after a set interval of time period,so to spare the time required for cache regeneration on client end yum would try to fetch cache on each run.
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
