I noticed updates piling up and not getting installed. This implies that DNF automatic is not running properly.
I try installing the "dnf-automatic" package -- it is installed, as it should be.
Fedora 41 introduced dnf5 to replace dnf. In fact "dnf" is now a symbolic link to "dnf5" in /usr/bin.
I take a look at /etc/dnf/automatic.conf. The file is there as it should be without any hanky panky with dnf renaming it or anything.
I try this:
systemctl status dnf-automatic ○ dnf5-automatic.service - dnf5 automatic Loaded: loaded (/usr/lib/systemd/system/dnf5-automatic.service; static) Drop-In: /usr/lib/systemd/system/service.d └─10-timeout-abort.conf, 50-keep-warm.conf Active: inactive (dead) TriggeredBy: ● dnf5-automatic.timerThat is not good. You used to start the service via:
systemctl enable dnf-automatic.timer systemctl start dnf-automatic.timerWe have a new fancy dnf5 now, so they felt a need to rename this, so:
systemctl enable dnf5-automatic.timer systemctl start dnf5-automatic.timerThis does not seem to get it done, so this is suggested:
systemctl enable --now dnf-automatic-installBut it just fails -- that service does not exist.
dnf5-plugin-automaticI try installing it and it is already installed.
They say there should be a file:
/etc/dnf/dnf5-plugins/automatic.confThere is no such file (no doubt the root of my problem), although the directory exists.
su cd /etc/dnf/dnf5-plugins cp ../automatic.conf . systemctl restart dnf5-automatic.timerThat seems to have done it. Maybe. No it has not, after a week, the updates are just piling up and nothing automatic is happening. See below.
systemctl status dnf5-automatic.timer ● dnf5-automatic.timer - dnf-automatic timer Loaded: loaded (/usr/lib/systemd/system/dnf5-automatic.timer; disabled; pr> Active: active (waiting) since Wed 2024-11-20 23:02:17 MST; 8s ago Invocation: fcc63f55f78d4d61bc38df4bd3d26d18 Trigger: Thu 2024-11-21 06:52:16 MST; 7h left Triggers: ● dnf5-automatic.serviceI am surprised that the syntax of the file has not changed and errors reported.
su cd /etc/dnf mv automatic.conf tt_automatic.BAK dnf remove dnf5-plugin-automatic dnf install dnf5-plugin-automatic systemctl start dnf5-automatic.timer systemctl status dnf5-automatic.timerI finish this and there is no conf file I can find. At the end of the install, it does say:
Complete!ng trigger-install scriptlet: systemd-0:256.8-1.fc41.x86_6486_64I dig around and find this tidbit:
The configuration is now read from /etc/dnf/dnf5-plugins/automatic.conf. If this file does not exist, then the distribution configuration file from /usr/share/dnf5/dnf5-plugins/automatic.conf is used.Sure enough, this file exists. I could copy it to /etc/dnf, but I will just edit this instead as follows. I change only this line from no to yes:
apply_updates = yes
systemctl enable dnf5-automatic.timerWhy don't they document all this?
Adventures in Computing / tom@mmto.org