DNF-AUTOMATIC(8)
π dnf-automatic(8) β the girl's guide to DNF Automatic β¨
okay so first things first, this is a section 8 manual page, bestie β the dnf-automatic one, from the DNF family. she's a whole tool, and she's about to become your new fave π«Ά
πΈ SYNOPSIS πΈ
dnf-automatic [<config file>]
β¨ DESCRIPTION β¨
so dnf-automatic is basically an alternative CLI to dnf upgrade, but specifically built with the facilities to make it suitable for running automatically and regularly β like, from systemd timers, cron jobs, and similar "nobody's watching, she just goes" situations. it's giving responsible older sister energy π
the way this tool operates is usually controlled by the configuration file, or by the function-specific timer units (scroll down, they're coming). the command only accepts a single optional argument pointing to the config file, plus some control arguments that are intended for use by the services that back the timer units. and if no configuration file is passed from the command line? she just uses /etc/dnf/automatic.conf by default. no cap.
the tool synchronizes package metadata as needed, then checks for updates available for the given system, and then either exits, downloads the packages, or downloads and applies them. 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 exactly as the configuration file specifies (see below) with regard to whether to download and apply updates. some other timer units are provided too, and these ones override the configuration file with some standard behaviours:
dnf-automatic-notifyonlydnf-automatic-downloaddnf-automatic-install
regardless of the configuration file settings: the first one will only notify of available updates π. the second will download, but not install them π₯. the third will download and install them π₯.
π RUN DNF-AUTOMATIC π
you can select the one that most closely fits your needs, customize /etc/dnf/automatic.conf for any specific behaviors, and enable the timer unit. that's the whole ritual, bestie π―οΈ
for example:
systemctl enable --now dnf-automatic-notifyonly.timer
π¦ CONFIGURATION FILE FORMAT π¦
the configuration file is separated into topical sections. very organized. very demure. π
π [commands] section
setting the mode of operation of the program.
apply_updatesβ boolean, default:False. Whether packages comprising the available updates should be applied bydnf-automatic.timer, i.e. installed via RPM. this impliesdownload_updates. note that if this is set toFalse, downloaded packages will be left in the cache till the next successful DNF transaction. also note that the other timer units override this setting πdownload_updatesβ boolean, default:False. Whether packages comprising the available updates should be downloaded bydnf-automatic.timer. note that the other timer units override this setting too.network_online_timeoutβ time in seconds, default:60. the maximal timednf-automaticwill wait until the system is online.0means that network availability detection will be skipped entirely πββοΈ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. so like, she naps π΄upgrade_typeβ either one ofdefault,security, default:default. what kind of upgrades to look at.defaultsignals looking for all available updates,securityonly those with an issued security advisory π‘οΈrebootβ either one ofnever,when-changed,when-needed, default:never. when the system should reboot following upgrades.neverdoes not reboot the system.when-changedtriggers a reboot after any upgrade.when-neededtriggers a reboot only when rebooting is necessary to apply changes β such as when systemd or the kernel is upgraded πreboot_commandβ string, default:shutdown -r +5 'Rebooting after applying package updates'. specify the command to run to trigger a reboot of the system. for example, to skip the 5-minute delay and wall message, useshutdown -r.
π [emitters] section
choosing how the results should be reported. she will be heard.
emit_viaβ list, default:email,stdio,motd. list of emitters to report the results through. available emitters are:stdioto print the result to standard output,commandto send the result to a custom command,command_emailto send an email using a command, andemailto send the report via email β andmotdsends the result to the/etc/motdfile πsystem_nameβ string, default: hostname of the given system. how the system is called in the reports π·οΈsend_error_messagesβ boolean, default:False. invokes emitters when an error occurs π¨
π [command] section
the 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] section
the 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] section
the 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_portβ integer, default:25. port number to connect to at the SMTP server.email_tlsβ either one ofno,yes,starttls, default:no. whether to use TLS, STARTTLS or no encryption to connect to the SMTP server πemail_toβ list, default:root. list of recipients of the message.
β [base] section
can be used to override settings from DNF's main configuration file. see DNF Configuration Reference π
π AUTHOR π
see AUTHORS in DNF source distribution.
π COPYRIGHT π
2012-2020, Red Hat, Licensed under GPLv2+
okay that's the whole page, bestie, you ate that π«Άβ¨ this was version 4.23.0, dated Mar 19, 2025, straight from the DNF DNF-AUTOMATIC(8) corner of the universe β now go enable that timer and let her cook π
π
π¦ where this page comes from
- opensuse-leap 16.0: dnf-automatic 4.23.0-bp160.1.7 Β· GPL-2.0-only AND GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms