j0rge
November 15, 2023, 4:09am
1
Warning: Disabling automatic updates is an unsupported configuration.
Commands
The following just commands enable and disable the appropriate services:
Manually (Main images)
You can individually disable which automatic update timers ublue-os/config provides with the following commands:
flatpak system: sudo systemctl disable flatpak-system-update.timer
flatpak user: sudo systemctl --global disable flatpak-user-update.timer
You can also configure automatic rpm-ostree
updates by editing /etc/rpm-ostreed.conf
and changing “AutomaticUpdatePolicy” to “none” or “check”:
[Daemon]
AutomaticUpdatePolicy=check
Manually for Bazzite and Bluefin/Aurora
Bazzite and Bluefin use ublue-update, which you can enable and disable with the following commands:
systemctl disable ublue-update.timer
- Disable automatic updates
systemctl enable ublue-update.timer
- Enable automatic updates
Note that this timer handles the following components:
Flatpaks
Brew packages
Containers used by distrobox
VS Code extensions
and a variety of other components depending on what you install. Manual configuration of can be configured via /usr/share/ublue-os/topgrade.toml
.
Check the topgrade for more features and options.
2 Likes
Marko
January 23, 2024, 7:41pm
2
I tried first command and got this:
❯ just enable-updates
error: Justfile does not contain recipe `enable-updates`.
I tried with ujust also, the same
What I am doing wrong ?
j0rge
January 23, 2024, 9:25pm
3
I forgot to update this doc when the change landed, it’s ujust toggle-updates
.
Here’s the file if you wanna see what it’s doing:
# vim: set ft=make :
alias upgrade := update
# Update system, flatpaks, and containers all at once
update VERB_LEVEL="full":
#!/usr/bin/bash
if systemctl is-enabled ublue-update.timer | grep -q enabled;
then
echo "Starting the ublue-update service"
sudo systemctl start ublue-update.service
else
if [ {{ VERB_LEVEL }} = "help" ]; then
echo "Usage: just update <level>"
echo " <level>: Specify the verbosity level - 'full', 'minimal', or 'prompt'"
echo " Use 'full' to show full output of each command."
echo " Use 'minimal' to show minimal output and indicate success or failure."
echo " Use 'prompt' to prompt the user before running each command."
exit 0
fi
This file has been truncated. show original
1 Like
For automatic updates, are users prompted to confirm any changes to a flatpak’s permissions?
2 Likes
Nope - even if you run the updater manually, it just tells you about permission updates, it doesn’t confirm with you.
That’s a shame.
It seems like a bit of a security issue for flatpak updates to grant elevated permissions, without user notice or confirmation.
1 Like