How to configure redhat.repo files on clients

Latest response

Is there any way to configure the yum repositories to have a priority in Satellite 6?
I've recently had an issue where EPEL was enabled to install a specific package, and it was left enabled during the next patch cycle. Epel overwrote a bunch of the tfm-ruby packages with a newer version and it caused issues with my satellite installation. While I finally got it working again, with Redhat's help, I would like a better way to ensure that it doesn't happen again. Best thing I've found it to install yum-priorities and change the priority for the EPEL repository. How can I make this happen in satellite 6?

thanks for any suggestions.

David

Responses

A couple of ways to handle this.

  • yum-plugin-versionlock - Included in RHEL Base - Allows you to lock a package to a specific NVREA (so that it cannot be updated without removing the lock first)
  • yum-plugin-priorities - Included in RHEL Optional - Packages in a repository with a lower priority can't be overridden by packages from a repository with a higher priority even if repo has a later version.
  • yum-plugin-protectbase - Included in RHEL Optional - This plugin allows certain repositories to be protected. Packages in the protected repositories can't be overridden by packages in non-protected repositories even if the non-protected repo has a later version.

Note that if you need to set per-repo configurations for a Red Hat repository, do NOT edit /etc/yum.repos.d/redhat.repo directly. This will be overwritten. Use subscription-manager to do it.

subscription-manager repo-override --repo=rhel-7-server-rpms --add=priority:1

This is exactly what I needed, thank you!

Wish List: To be able to do repo-override's globally (in the repository definition) and/or individually (in the host definition) from Satellite.

What do you think ?

Close

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