DNF-AUTOMATIC - Online Linux Manual PageSection : 8
Updated : Mar 02, 2021
Source : 4.6.1
Note : DNF
NAMEdnf-automatic − DNF Automatic
SYNOPSISdnf−automatic [<config file>]
DESCRIPTIONAlternative 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 usually controlled by the configuration file or the function−specific timer units (see below). The command only accepts a single optional argument pointing to the config file, and some control arguments intended for use by the services that back the timer units. 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. The systemd timer unit dnf−automatic.timer will behave as the configuration file specifies (see below) with regard to whether to download and apply updates. Some other timer units are provided which override the configuration file with some standard behaviours: • dnf−automatic−notifyonly • dnf−automatic−download • dnf−automatic−install Regardless of the configuration file settings, the first will only notify of available updates. The second will download, but not install them. The third will download and install them.
RUN DNF-AUTOMATICYou can select one that most closely fits your needs, customize /etc/dnf/automatic.conf for any specific behaviors, and enable the timer unit. For example: systemctl enable −−now dnf−automatic−notifyonly.timer
CONFIGURATION FILE FORMATThe configuration file is separated into topical sections.
[commands] sectionSetting the mode of operation of the program. apply_updates boolean, default: False Whether packages comprising the available updates should be applied by dnf−automatic.timer, i.e. installed via RPM. Implies download_updates. Note that if this is set to False, downloaded packages will be left in the cache till the next successful DNF transaction. Note that the other timer units override this setting. download_updates boolean, default: False Whether packages comprising the available updates should be downloaded by dnf−automatic.timer. Note that the other timer units override this setting. network_online_timeout time in seconds, default: 60 Maximal time dnf−automatic will wait until the system is online. 0 means that network availability detection will be skipped. random_sleep time in seconds, default: 0 Maximal random delay before downloading. Note that, by default, the systemd timers also apply a random delay of up to 1 hour. upgrade_type either one of default, security, default: default What kind of upgrades to look at. default signals looking for all available updates, security only those with an issued security advisory.
[emitters] sectionChoosing how the results should be reported. emit_via list, default: email, stdio, motd List of emitters to report the results through. Available emitters are stdio to print the result to standard output, command to send the result to a custom command, command_email to send an email using a command, and email to send the report via email and motd sends the result to /etc/motd file. system_name string, default: hostname of the given system How the system is called in the reports.
[command] sectionThe command emitter configuration. Variables usable in format string arguments are body with the message body. command_format format string, default: cat The shell command to execute. stdin_format format string, default: {body} The data to pass to the command on stdin.
[command_email] sectionThe command email emitter configuration. Variables usable in format string arguments are body with message body, subject with email subject, email_from with the "From:" address and email_to with a space−separated list of recipients. command_format format string, default: mail −Ssendwait −s {subject} −r {email_from} {email_to} The shell command to execute. email_from string, default: root Message's "From:" address. email_to list, default: root List of recipients of the message. stdin_format format string, default: {body} The data to pass to the command on stdin.
[email] sectionThe email emitter configuration. email_from string, default: root Message's "From:" address. email_host string, default: localhost Hostname of the SMTP server used to send the message. email_to list, default: root List of recipients of the message.
[base] sectionCan be used to override settings from DNF's main configuration file. See conf_ref.
AUTHORSee AUTHORS in DNF source distribution.
COPYRIGHT2012-2021, Red Hat, Licensed under GPLv2+ 0
Johanes Gumabo
Data Size : 21,252 byte
man-dnf-automatic.8Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 180,957
Visitor ID : :
Visitor IP : 3.141.47.139 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.