Fedora Automatic Updates / unattended updates (for server)

Hi there,

I’m trying to do the equivalent of Ubuntu’s automatic security updates on Fedora Server (also known as unattended updates).

I think our Fedora automatic updates docs and the dnf-automatic docs are missing an important point currently: how to configure sudo nano /etc/dnf/automatic.conf. My install only contains upgrade_type = default which isn’t a valid.

These 3 steps are already in the Fedora automatic updates docs:

  1. sudo dnf install dnf-automatic
  2. configure sudo nano /etc/dnf/automatic.conf - doesn’t say how though.

I think we should add a “default config” (below) to step 2, which a user can then customize:

[commands]
apply_updates=True
reboot=when-needed

And then step 3 as-is systemctl enable --now dnf-automatic.timer

What do you think?

Thanks @vgaetera ! In your comment file the config file is also pretty much unset though - my point above was more that we should add a non-empty config file either on dnf-automatic install or in the documentation, like Ubuntu does. What do you think?

Thank you! I updated the docs to reflect the above link and the config of dnf5-automatic, and removed some outdated dnf4 commands and comments about Fedora 22 (!). Thanks! Automatic Updates :: Fedora Docs

2 Likes