- Distrowahl
- Fedora
Hallo zusammen
ich will gerne bei mir die automatischen Updates in Fedora aktivieren.
Folgendes habe ich bis jetzt durchgeführt
Installation des DNF5 Plugin
sudo dnf install dnf5-plugin-automatic
Bearbeitung der Automatic.con
sudo nano /etc/dnf/automatic.conf
Code
# This configuration file is managed by the dnf5-plugin-automatic package.
# Please do not edit it. To make changes in dnf5 automatic configuration
# edit /etc/dnf/automatic.conf and make your adjustments there.
[commands]
# Whether updates should be applied when they are available, by
# dnf5 automatic.
apply_updates = yes
# Whether updates should be downloaded when they are available, by
# dnf5 automatic.
download_updates = yes
# Maximum time in seconds to wait until the system is on-line and able to
# connect to remote repositories.
# 0 means that network availability detection will be skipped.
network_online_timeout = 60
# Maximum random delay in seconds before downloading (only applied if
# ``--timer`` option was used). Note that, by default, the ``systemd`` timers
# also apply a random delay of up to 1 hour.
random_sleep = 0
# What kind of upgrade to perform:
# default = all available upgrades
# security = only the security upgrades
upgrade_type = default
# When the system should reboot following upgrades:
# never = don't reboot after upgrades
# when-changed = reboot after any changes
# when-needed = reboot when necessary to apply changes
reboot = never
# The command that is run to trigger a system reboot.
reboot_command = "shutdown -r +5 'Rebooting after applying package updates'"
[emitters]
# Name to use for this system in messages that are emitted. Default is the
# hostname.
# system_name = my-host
# How to send messages. Valid options are stdio, command, command_email,
# email, and motd. Multiple comma separated options can be specified.
# stdio: messages will be sent to stdout; this is useful to have cron send the
# messages.
# command: to send result to a custom command.
# email: dnf5 automatic will send email itself according to the configured
# options.
# motd: /etc/motd.d/dnf5-automatic file will have the messages.
# command_email: then messages will be send via a shell command compatible with
# sendmail.
# If emit_via is left blank, no messages will be sent.
emit_via = stdio
# Whether to emit a message when nothing interesting happened - the operation
# succeeded and no packages were available/installed.
emit_no_updates = no
[command]
# The shell command to execute.
# command_format = "cat"
# The contents of stdin to pass to the command. Variable `body` with the message
# body is usable.
# stdin_format = "{body}"
[command_email]
# The shell command to use to send email. Variables `subject`, `email_from`,
# and `email_to` are available.
# command_format = "mail -Ssendwait -s {subject} -r {email_from} {email_to}"
# The contents of stdin to pass to the command. It is a format string with the
# same arguments as `command_format`.
# stdin_format = "{body}"
# The address to send email messages from.
email_from = root
# List of addresses to send messages to.
email_to = root
[email]
# The address to send email messages from.
email_from = root
# List of addresses to send messages to.
email_to = root
# Name of the host to connect to to send email messages.
email_host = localhost
# Port number to connect to at the email host.
email_port = 25
# Use TLS or STARTTLS to connect to the email host.
# Available values are "no", "yes", and "starttls"
email_tls = no
# Credentials to use for SMTP server authentication are taken from .netrc file
[base]
# This section overrides config values from the dnf.conf (see man dnf.conf for
# available options).
Display More
Danach Aktivierung
sudo systemctl enable --now dnf5-automatic.timer
Danach den Status geprüft
systemctl status dnf5-automatic.timer
Das wäre die Ausgabe
Code
● dnf5-automatic.timer - dnf-automatic timer
Loaded: loaded (/usr/lib/systemd/system/dnf5-automatic.timer; enabled; preset: disabled)
Active: active (waiting) since Mon 2025-05-19 18:34:53 CEST; 29min ago
Invocation: a2f206b633d94eeca43bdbfd46bed565
Trigger: Mon 2025-05-19 19:34:18 CEST; 29min left
Triggers: ● dnf5-automatic.service
Zu meiner Frage
Sieht das so gut aus oder habe ich was übersehen oder vergessen?