Files
punktfunk/docs-site/content/docs/updating.md
T
enricobuehlerandClaude Fable 5 4a540bddc8
ci / rust-arm64 (push) Successful in 1m36s
ci / docs-site (push) Successful in 1m28s
ci / web (push) Successful in 2m25s
docker / builders (ci/arch-ci.Dockerfile, punktfunk-arch-ci) (push) Successful in 9s
docker / builders (ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Successful in 10s
docker / builders (ci/rust-ci-noble.Dockerfile, punktfunk-rust-ci-noble) (push) Successful in 6s
docker / builders (ci/android-ci.Dockerfile, punktfunk-android-ci) (push) Successful in 1m13s
docker / builders (ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Successful in 7s
deb / build-publish-client-arm64 (push) Successful in 2m27s
docker / apps (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Successful in 1m0s
docker / apps (., web/Dockerfile, punktfunk-web) (push) Successful in 1m47s
deb / build-publish-host (push) Successful in 5m53s
docker / builders (--build-arg FEDORA_VERSION=44, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm, -f44) (push) Successful in 7s
android / android (push) Successful in 7m2s
docker / builders-arm64cross (push) Successful in 11s
arch / build-publish (push) Failing after 7m33s
ci / rust (push) Successful in 7m35s
docker / deploy-docs (push) Successful in 39s
windows-host / package (push) Failing after 11m1s
windows-host / canary-manifest (push) Skipped
windows-host / winget-source (push) Skipped
deb / build-publish (push) Successful in 6m53s
rpm / build-publish (43, bazzite, punktfunk-fedora-rpm) (push) Successful in 19m4s
rpm / build-publish (44, fedora-44, punktfunk-fedora44-rpm) (push) Successful in 19m21s
apple / swift (push) Successful in 4m58s
apple / screenshots (push) Successful in 21m32s
feat(host/deck): one-click source rebuild — the update.sh run as a transient user unit
The U3.1 leg of planning:host-update-from-web-console.md. The Deck's on-device install
gets the Update-now button with no opt-in (user-owned, no root): update.sh --pull runs
under systemd-run --user so the script's own restart of punktfunk-host can't kill it
mid-build (a child in our cgroup would die with us). Outcome without version equality —
which a source rebuild can't promise: a failed build leaves the host alive to report it
(unit watched to failure, log attached); a successful one restarts us, and the new
source_build intent flag makes intent-present-at-boot itself the success signal (the
script only restarts the host after a successful install). The console stops treating
a live long build as a timeout.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-30 16:28:40 +02:00

5.1 KiB

title, description
title description
Updating the Host How to see when a newer punktfunk host is available — the web console's update card — and the update command for every install method.

The web console tells you when a newer host is out. The Host page has an Updates card showing the version you run, the channel you follow (stable or canary), how this host was installed, and — once a newer release exists — the exact command that updates it. The "update available" state also fires an update.available event on the host event stream, so hooks and scripts can react to it too.

The check is a small signed manifest the host fetches from the punktfunk release feed and verifies against keys built into the host itself — a tampered or replayed feed is rejected, and the console will tell you when a check failed rather than silently showing stale facts.

Updating, per install method

The console shows the right one of these automatically; for reference:

How you installed How to update
Windows installer / winget winget upgrade unom.PunktfunkHost, or run the newer punktfunk-host-setup.exe
Ubuntu / Debian (apt) sudo apt update && sudo apt install --only-upgrade punktfunk-host
Fedora (dnf) sudo dnf upgrade punktfunk
Bazzite sysext (recommended) sudo punktfunk-sysext update
Bazzite rpm-ostree layer sudo /usr/share/punktfunk/update-punktfunk.sh (staged — reboot to finish)
Arch / CachyOS (pacman) sudo pacman -Syu (a normal full system upgrade)
Steam Deck (on-device build) bash ~/punktfunk/scripts/steamdeck/update.sh --pull
NixOS update the flake input and rebuild

After a Linux package update, restart the host to pick up the new binary:

systemctl --user restart punktfunk-host

(The Windows installer restarts the service itself; punktfunk-sysext update prints the same restart hint when it's needed.)

One-click updating (Windows)

On a Windows host the card shows an Update now button instead of a command. It asks for the console password again (a saved login alone can't restart your host), then the host downloads the installer, verifies it against the signed release manifest and its code signature, and runs it silently — the service restarts at the end and the page reconnects by itself. If a stream is live you'll be warned first: updating drops it.

Every attempt leaves a result in the card (and an installer log under C:\ProgramData\punktfunk\logs\update-<version>.log) — including across the restart, so a failed update is never silent. To disable the button entirely on a host, set PUNKTFUNK_UPDATE_APPLY=0 in host.env; the card then shows the manual command instead.

One-click updating (Linux — opt-in)

The apt, dnf, Bazzite-sysext, and rpm-ostree installs can one-click update too, via a small root helper the packages ship (pf-update + a punktfunk-update.service oneshot). It's off until you opt in, because a web button that ends in root deserves an explicit decision:

sudo usermod -aG punktfunk-update $USER    # then log out and back in

That group membership is the entire grant — a polkit rule lets its members start exactly that one service, whose only job is "run this system's normal package update for the punktfunk packages, then prove the new binary runs". The button never chooses versions or URLs; your package manager's own signed repositories stay the source of truth. The card shows the opt-in command until you've done this, and the manual command always keeps working.

Notes per method: on rpm-ostree the update is staged and the card will say so — reboot to finish (the console never reboots your machine). On Arch/pacman the button additionally requires PACMAN_FULL_SYSUPGRADE=1 in /etc/punktfunk/update.conf, because the only safe pacman update is a full pacman -Syu — partial upgrades are how Arch boxes break, and we won't run one. After a successful update the host restarts itself and the page reconnects.

The Steam Deck on-device build gets the button too, with no opt-in (it's your own user's install, no root involved): it runs the same update.sh rebuild the docs describe, which compiles on the Deck — expect it to take a while; the card keeps showing progress and the log lands in ~/.config/punktfunk/logs/update-steamos.log.

Turning the check off

The check contacts git.unom.io (the punktfunk forge) and nothing else, and sends nothing but a normal download request. If you'd rather the host never checks, set:

PUNKTFUNK_UPDATE_CHECK=0

in the host's environment (host.env on Windows, the systemd user unit environment on Linux). The card then shows checks as disabled; everything else keeps working.

If the card says the feed is stale

"Feed hasn't changed in over 45 days" means checks succeed but nothing new arrives. Usually that just means no release happened for a while; if the releases page shows something newer than the card does, something between this host and the feed is pinning old data — worth a look at proxies or DNS on the way to git.unom.io.