zpkg 0.6.1
2026-11-29
update.conf format are documented inVersion bumps (zpkg bump). In 0.6.1, --pr also pushes the branch and prints a compare URL when gh is not installed (install it with thegithub-cli recipe).Less manual recipe work
Following a new upstream release used to mean editingversion, sources, checksums andrevision by hand for every recipe. zpkg bumpin zpkg 0.6.1 automates this by separating detection from application.
Opt-in detection
Only recipes with an update.conf file participate in automatic detection. Everything else keeps the manual workflow.
- github — detects through the Releases API and tags
- kernel — kernel.org
releases.json; LTS series or mainline - url — scans a listing page with a regular expression
- self — self-hosted archive; needs an explicit version and
--source - manual — never auto-detected
SERIES pins an upstream release branch. Mesa's stable channel follows 26.2, while testing and unstable follow26.3, so only patches within the maintained branch are picked up.
Safety model
--checkis read-only; files are written only with an explicit--apply- The new source is downloaded and hashed with SHA-256, and the rewritten recipe is reloaded in a temporary directory
- Multiple recipes run as prepare → write → build; every file is restored from a backup on failure
- A failed
--buildrolls everything back.--prrequires--buildand--yes, and never merges automatically - Downgrades are rejected by default, as are candidates outside
SERIES - Old version strings in build scripts are replaced with boundaries; hardcoded paths that cannot be rewritten stop the run
Pilots
Eight representative recipes are monitored in every channel.
| Recipe | TYPE | Notes |
|---|---|---|
core/linux | kernel | stable 6.18 / testing 7.3 / unstable mainline; COMPANION=linux-headers |
core/linux-headers | manual | updated together with linux |
core/zpkg | self | zpkg updating itself |
desktop/mesa | url | stable 26.2 / testing and unstable 26.3 |
desktop/hwdata | github | tags such as v0.413 |
desktop/tessa | github | tags such as v0.2.5 |
main/curl | url | follows the latest 8.x |
main/github-cli | github | tags such as v2.106.0 from cli/cli |
The first detection found stable hwdata 0.394 → 0.413, stable Mesa 26.2.7 → 26.2.8 and unstable Linux 7.4-rc3 → 7.4-rc4.
Usage
# Detection only (read-only)
zpkg bump --check --all-channels
# Detect upstream and verify with a build
zpkg bump mesa --channel testing --apply --build
# Open a review PR (requires --build and --yes)
zpkg bump mesa --channel testing --apply --build --pr --yes--pr pushes the branch and opens the PR when ghis installed. gh is now packaged as thegithub-cli recipe in stable, testing and unstable. Without it, the command prints a compare URL so the PR can be opened in a browser.
--check --json --exit-code exits with status 2 when an update is available. The recipe repository now runsbump --check daily and records the result in the job summary and an artifact through bump-check.yml. GitHub-hosted runners do not build packages.
Caveats
- Run
--buildand real applications on a build host - Upstream signatures are not verified; the SHA-256 of the downloaded source is recorded
- Dependency changes (soname bumps and similar) are not detected; use
--buildand testing