Bug 2279257 - man dn5-automatic is out of date
Summary: man dn5-automatic is out of date
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf5
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Marek Blaha
QA Contact:
URL: https://github.com/cockpit-project/co...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-05-06 07:03 UTC by Martin Pitt
Modified: 2024-05-09 12:14 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Martin Pitt 2024-05-06 07:03:59 UTC
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

Comment 1 Marek Blaha 2024-05-09 12:14:45 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.