Autoupdate don't work in Fedora KDE

Hello,
I’ve installed Fedora KDE few days ago and I’ve activated the “autoupdate” option in KDE’s settings. Unfortunately it doesn’t work and none of my packages has been automatically updated.

I’ve checked the Fedora docs and it seems the auto-update feature requires dnf-automatic which is not installed.
Since the autoupdate feature can be enabled on Plasma Settings I think this package should be installed by default on Fedora KDE. Otherwise the system behaviour doesn’t follow the system settings.

To enable automatic updates you need to do the following

First, you need to install the dnf-automatic package, which is responsible for handling automatic updates.

  1. Open a terminal.
  2. Run the following command to install dnf-automatic:

bash

sudo dnf install dnf-automatic

Step 2: Enable and Configure dnf-automatic

After installing dnf-automatic, you need to enable and configure it to handle updates automatically.

  1. Open the configuration file for dnf-automatic:

bash

sudo nano /etc/dnf/automatic.conf
  1. In this file, you’ll find several sections. The most important settings are under [commands] and [emitters]. Here’s a basic configuration:

ini

[commands]
upgrade_type = default
random_sleep = 0
download_updates = yes
apply_updates = yes

[emitters]
emit_via = stdio

This configuration ensures that updates are downloaded and applied automatically.
3. Save and close the file (if using nano, press Ctrl + O to save and Ctrl + X to exit).

Step 3: Enable the dnf-automatic Timer

To ensure that the updates are applied regularly, you need to enable the dnf-automatic timer.

  1. Run the following commands in the terminal:

bash

sudo systemctl enable --now dnf-automatic.timer
sudo systemctl start dnf-automatic.timer

This will start the service immediately and ensure it runs at the scheduled times.

Step 4: Verify the Setup

You can verify that dnf-automatic is active and running by checking the status of the timer:

bash

systemctl status dnf-automatic.timer

If everything is set up correctly, you should see that the timer is active.

1 Like

Thanks for your help. I followed the same guide on Fedora’s Docs.

What I was reporting here is that the automatic updates on Fedora KDE can’t work out of the box. They need a manual configuration which, in my opinion, should be already available when Fedora is installed.

I don’t know if it’s more a Fedora or KDE issue

Can you link thie Docs page you sued here? I would like to review it.

1 Like

Here:

Thanks :slight_smile:

1 Like