Install dnf-automatic Package
An XCCDF Rule
Description
The dnf-automatic
package can be installed with the following command:
$ sudo yum install dnf-automatic
Rationale
dnf-automatic
is an alternative command line interface (CLI)
to dnf upgrade
suitable for automatic, regular execution.
- ID
- xccdf_org.ssgproject.content_rule_package_dnf-automatic_installed
- Severity
- Medium
- References
- Updated
Remediation - Anaconda Pre-Install Instructions
package --add=dnf-automatic
Remediation - OS Build Blueprint
[[packages]]
name = "dnf-automatic"
version = "*"
Remediation - Ansible
- name: Ensure dnf-automatic is installed
package:
name: dnf-automatic
state: present
tags:
- enable_strategy
Remediation - Puppet
include install_dnf-automatic
class install_dnf-automatic {
package { 'dnf-automatic':
ensure => 'installed',
}
Remediation - Shell Script
if ! rpm -q --quiet "dnf-automatic" ; then
yum install -y "dnf-automatic"
fi