dnf.automatic (8) Linux Manual Page
dnf.automatic – DNF Automatic
Synopsis
dnf-automatic [<config file>]
Description
Alternative CLI to dnf upgrade with specific facilities to make it suitable to be executed automatically and regularly from systemd timers, cron jobs and similar.
The operation of the tool is completely controlled by the configuration file and the command only accepts single optional argument pointing to it. If no configuration file is passed from the command line, /etc/dnf/automatic.conf is used.
The tool synchronizes package metadata as needed and then checks for updates available for the given system and then either exits, downloads the packages or downloads and applies the packages. The outcome of the operation is then reported by a selected mechanism, for instance via the standard output, email or motd messages.
Configuration File Format
The configuration file is separated into topical sections.
[command] section
Setting the mode of operation of the program.
apply_updates- boolean, default: False
Whether packages comprising the available should be applied (i.e. installed via RPM). Implies
download_updates. download_updates- boolean, default: False
Whether packages comprising the available should be downloaded.
upgrade_type- either one of
default,security, default:defaultWhat kind of upgrades to look at.
defaultsignals looking for all available updates,securityonly those with an issued security advisory.
[emitters] section
Choosing how the results should be reported.
emit_via- list, default:
email, stdio, motdList of emitters to report the results through. Available emitters are
stdioto print the result to standard output,emailto send the report via email andmotdsends the result to /etc/motd file. system_name- string, default: hostname of the given system
How the system is called in the reports.
[email] section
The email emitter configuration.
email_from- string, default:
rootMessage’s "From:" address.
email_to- list, default:
rootList of recipients of the message.
email_host- string, default:
localhostHostname of the SMTP server used to send the message.
[base] section
Can be used to override settings from DNF’s main configuration file. See command_ref.
Author
See AUTHORS in DNF source distribution.
Copyright
2012-2014, Red Hat, Licensed under GPLv2+
