Skip to content

Install dnf-plugin-subscription-manager Package

An XCCDF Rule

Description

The dnf-plugin-subscription-manager package can be installed with the following command:
$ sudo yum install dnf-plugin-subscription-manager

Rationale

This package provides plugins to interact with repositories and subscriptions from the Red Hat entitlement platform; contains subscription-manager and product-id plugins.

ID
xccdf_org.ssgproject.content_rule_package_dnf-plugin-subscription-manager_installed
Severity
Medium
References
Updated

Remediation Templates

A Puppet Snippet

include install_dnf-plugin-subscription-manager
class install_dnf-plugin-subscription-manager {
  package { 'dnf-plugin-subscription-manager':
    ensure => 'installed',
  }
}

script:kickstart

package install dnf-plugin-subscription-manager

An Ansible Snippet

- name: Ensure dnf-plugin-subscription-manager is installed
  package:
    name: dnf-plugin-subscription-manager
    state: present
  tags:
  - CCE-82315-3

OS Build Blueprint

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

script:bootc

dnf install dnf-plugin-subscription-manager

Anaconda Pre-Install Instructions

package --add=dnf-plugin-subscription-manager

A Shell Script

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