Automatic updates in Fedora with dnf-automatic
I prefer this method;
- Download updates regularly to cache.
- Manually run
dnf -C updateto update only with downloaded packages from cache.
- Manually perform
dnf clean cachewhen
/var/cache/dnfgets too big.
$ sudo dnf install dnf-automatic
/etc/dnf/automatic.conf and make sure the following settings are set.
[commands] download_updates = yes apply_updates = no
I wouldn't recommend automatic installation of updates
Because Fedora is a bit cutting edge so I prefer knowing when and which updates are installed, to trace potential issues.
$ sudo systemctl enable --now dnf-automatic.timer
There are also some specialized timers for specific configurations, so you don't have to edit automatic.conf.
$ sudo systemctl enable --now dnf-automatic-download.timer
This would have the same effect.