Automatic updates through timers to get rid of GUI-based Discover

Hello ppl. So, my experience with Discover on Fedora KDE has been just too meh so far. So I switched back to typing commands on the terminal… and it hasn’t been that bad tbh. Now, I want to perform automatic updates to my system, optionally with notifications every time an update is done successfully. For this I have encountered dnf-automatic for the RPM packages and flatpak-automatic for the Flatpak apps to be some useful tools. However, since I am a little bit too lazy to start completely from zero, I wanted to ask if someone had some similar setup and corresponding dotfiles I could use ^^'. Also, what packages could I uninstall after setting this up successfully, and may uninstalling Discover trigger unexpected behaviors from KDE?

Thanks for your answers. And yes, this is my first post on Fedora Discussion :)!

I removed Discover and all of PackageKit without any harm to my KDE systems.

But I do not do automatic updates. I use my own tooling to update my Fedora systems over ssh, which I trigger manually. As some of these system run 24x7 I do not want them updated when I’m not around to fix them if the worst happens.

Welcome to :fedora:

I set the timer to run at 04:00 to check for updates.
My dnf-automatic config for my desktop.
I usually check to see if I get updates with journalctl -u dnf5-automatic.service --since -24h.
This does not provide notifications.

[commands]
#Download and install updates 
apply_updates = yes

#Reboot when updates are installed
reboot = when-changed
reboot_command = "shutdown -r +10 'Rebooting after applying package updates'"

[emitters]
emit_via = stdio
emit_no_updates = yes

References:

and
man dnf5-automatic

Add a system timer for Flatpak next to the dnf5-automatic timer above, since dnf5-automatic only updates RPM packages.

Create /etc/systemd/system/flatpak-update.service:

[Unit]
Description=Update Flatpak apps
Wants=network-online.target
After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/flatpak update --noninteractive

Then create /etc/systemd/system/flatpak-update.timer:

[Unit]
Description=Update Flatpak apps daily

[Timer]
OnCalendar=daily
Persistent=true
RandomizedDelaySec=1h

[Install]
WantedBy=timers.target

Enable it with:

sudo systemctl daemon-reload
sudo systemctl enable --now flatpak-update.timer

This updates the system-wide Flatpak installation, which is where Discover and flatpak install put Flathub apps by default. Check the last run with journalctl -u flatpak-update.service --since -24h.

Drafted with AI, reviewed by me.

Thank you all for your answers! It is way easier than I expected!!! I guess this would be this weekend’s little project for me. I would use your suggestions, and add notifications whenever I get to setup my own ntfy server haha. (I am a self-hosting enthusiast lol)

see people discover the interaction with discover as meh is just sad

discover is a tool provided by kde, not by the distro, it just does updates and allows installation of things you want in a gui environment, something most of us linux users wanted for decades

i guess you cant make everybody happy, but the meh, is something else for sure