Autoupdate Flatpaks
systemd services to automatically update user flatpaks each 6h (by default)
- Create the updater service
systemctl --user edit --full --force flatpak-user-update.service[Unit]
Description=Flatpak Automatic Update
Documentation=man:flatpak(1)
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/flatpak --user update -y --noninteractive
[Install]
WantedBy=multi-user.target- Install a timer
systemctl --user edit --full --force flatpak-user-update.timer[Unit]
Description=Flatpak Automatic Update Trigger
Documentation=man:flatpak(1)
[Timer]
OnBootSec=5m
OnCalendar=0/6:00:00
Persistent=true
[Install]
WantedBy=timers.target- Enable the timer
systemctl --user daemon-reload
systemctl --user enable --now flatpak-user-update.timer