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 - Anaconda Pre-Install Instructions
package --add=dnf-plugin-subscription-manager
Remediation - OS Build Blueprint
[[packages]]
name = "dnf-plugin-subscription-manager"
version = "*"
Remediation - Ansible
- name: Ensure dnf-plugin-subscription-manager is installed
package:
name: dnf-plugin-subscription-manager
state: present
tags:
- CCE-82315-3
Remediation - Puppet
include install_dnf-plugin-subscription-manager
class install_dnf-plugin-subscription-manager {
package { 'dnf-plugin-subscription-manager':
ensure => 'installed',
}
Remediation - Shell Script
if ! rpm -q --quiet "dnf-plugin-subscription-manager" ; then
yum install -y "dnf-plugin-subscription-manager"
fi