Install dnf-automatic Package
An XCCDF Rule
Description
The dnf-automatic
package can be installed with the following command:
$ sudo dnf 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:
- CCE-83454-9
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
dnf install -y "dnf-automatic"
fi