Skip to content

Install subscription-manager Package

An XCCDF Rule

Description

The subscription-manager package can be installed with the following command:

$ sudo dnf install subscription-manager

Rationale

Red Hat Subscription Manager is a local service which tracks installed products and subscriptions on a local system to help manage subscription assignments. It communicates with the backend subscription service (the Customer Portal or an on-premise server such as Subscription Asset Manager) and works with content management tools such as . The package provides, among other things, plugins to interact with repositories and subscriptions from the Red Hat entitlement platform - the subscription-manager and product-id plugins.

ID
xccdf_org.ssgproject.content_rule_package_subscription-manager_installed
Severity
Medium
References
Updated



Remediation - Anaconda Pre-Install Instructions


package --add=subscription-manager

Remediation - OS Build Blueprint


[[packages]]
name = "subscription-manager"
version = "*"

Remediation - Ansible

- name: Ensure subscription-manager is installed
  package:
    name: subscription-manager
    state: present
  tags:
  - DISA-STIG-RHEL-09-215010

Remediation - Puppet

include install_subscription-manager

class install_subscription-manager {
  package { 'subscription-manager':
    ensure => 'installed',
  }

Remediation - Shell Script


if ! rpm -q --quiet "subscription-manager" ; then
    dnf install -y "subscription-manager"
fi