Autoupdate don't work in Fedora KDE

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