I'm looking into adjusting cockpit's automatic package update configuration to dnf5. `man dnf5-automatic`, aka https://dnf5.readthedocs.io/en/latest/dnf5_plugins/automatic.8.html is very outdated, though: - /etc/dnf/automatic.conf is not the correct file any more. The dnf5-plugin-automatic package doesn't ship *any* config file (that's another bug, will file separately), but strace shows that it looks for /etc/dnf/dnf5-plugins/automatic.conf - "Some other timer units are provided" and the "dnf-automatic-notifyonly.timer" are obsolete. dnf5-automatic.timer is the only timer that is shipped now (and the Alias=dnf-automatic.timer, but I don't think that needs to be documented). This is a good thing -- provide *one* way of configuring this, not two. - https://dnf5.readthedocs.io/en/latest/changes.html says "Different configuration file locations and some changes in format", but a cursory comparison looks very similar to the dnf4 format in https://www.man7.org/linux/man-pages/man8/dnf-automatic.8.html . However, this should probably be checked, too. I tried # cat /etc/dnf/dnf5-plugins/automatic.conf [commands] apply_updates = True and that seems to work, calling `dnf5 automatic` installs packages now. I also tried to add "reboot = when-needed". My currently available updates include the kernel, and it correctly schedules a reboot after updates. Reproducible: Always
Thanks for noticing it! The upstream PR https://github.com/rpm-software-management/dnf5/pull/1476 should fix both issues - errors in documentation and also shipping a default config file.