Skip to content

Install libdnf-plugin-subscription-manager Package

An XCCDF Rule

Description

The libdnf-plugin-subscription-manager package can be installed with the following command:
$ sudo dnf install libdnf-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_libdnf-plugin-subscription-manager_installed
Severity
Medium
References
Updated

Remediation Templates

A Puppet Snippet

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

script:kickstart

package install libdnf-plugin-subscription-manager

A Shell Script

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

An Ansible Snippet

- name: Ensure libdnf-plugin-subscription-manager is installed
  package:
    name: libdnf-plugin-subscription-manager
    state: present
  tags:
  - enable_strategy

OS Build Blueprint

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

script:bootc

dnf install libdnf-plugin-subscription-manager

Anaconda Pre-Install Instructions

package --add=libdnf-plugin-subscription-manager