Skip to content

Install dnf-automatic Package

An XCCDF Rule

Description

The dnf-automatic package can be installed with the following command:

$ sudo zypper 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 - OS Build Blueprint


[[packages]]
name = "dnf-automatic"
version = "*"

Remediation - Ansible

- name: Ensure dnf-automatic is installed
  package:
    name: dnf-automatic
    state: present
  tags:
  - CCE-91476-2

Remediation - Puppet

include install_dnf-automatic

class install_dnf-automatic {
  package { 'dnf-automatic':
    ensure => 'installed',
  }

Remediation - Shell Script


zypper install -y "dnf-automatic"