Installing the Leapp utility does not work with the foreman-protector locking plugin in Red Hat Satellite 6.11

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.11 or newer

Issue

  • Leapp utility cannot be installed in Red Hat Satellite 6.11 using the # yum install leapp

Resolution

As reported by in the yum output and in the solution:

How to install or update packages in Red Hat Satellite 6?

On Satellite environment packages have to be installed using satellite-maintain.
Run below command on Satellite to install the leapp utility.

# satellite-maintain packages install leapp

For more KB articles/solutions related to Red Hat Satellite 6.x LEAPP Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x LEAPP Issues

Root Cause

Previously, when using yum to update or install packages on the Satellite base operating system, the packages related to Red Hat Satellite might also be updated and that would result in system inconsistency.

To prevent that, foreman-protector yum plugin has been implemented. Now, to install or updating packages have to be used the commands:
satellite-maintain packages install
satellite-maintain packages update

NOTE: After running satellite-maintain packages ... commands, the execution of satellite-installer --upgrade is triggered, and some services are restarted.

Diagnostic Steps

  • Installing leapp on Satellite-6.11 fails with below error trace:

       # yum install leapp
       ...
    
       WARNING: Excluding 13043 packages due to foreman-protector. 
       Use foreman-maintain packages install/update <package> 
       to safely install packages without restrictions.
       Use foreman-maintain upgrade run for full upgrade.
    
       No package leapp available.
       Error: Nothing to do
    
SBR
Product(s)
Components
Category

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.