Skip to content

docs: upgrade only the CLI package in system package instructions - #316

Merged
pjcdawkins merged 1 commit into
mainfrom
docs/package-upgrade-commands
Nov 17, 2026
Merged

pjcdawkins merged 1 commit into
mainfrom
docs/package-upgrade-commands

Conversation

@pjcdawkins

Copy link
Copy Markdown
Contributor

Updates the upgrade instructions for system package installs (docs/install.md, README.md).

Why

  • The Debian command, sudo apt-get update && sudo apt-get upgrade upsun-cli, upgraded every package on the system: apt-get upgrade does not limit itself to the packages named. In debian:bookworm-20230612-slim, apt-get -s upgrade tzdata reports 47 packages to upgrade, and apt-get -s install --only-upgrade tzdata reports 1.
  • dnf upgrade -y upsun-cli could miss a new release until dnf's metadata cache expired.
  • The commands now match the ones the CLI's update notice will print for these installs (feat(update): tell system package installs about new releases, sooner #314).

What

Each command upgrades only upsun-cli, and refreshes the package index first:

Before After
Alpine sudo apk update && sudo apk upgrade upsun-cli sudo apk add --upgrade --update-cache upsun-cli
Ubuntu/Debian sudo apt-get update && sudo apt-get upgrade upsun-cli sudo apt update && sudo apt install --only-upgrade upsun-cli
RPM (dnf) sudo dnf upgrade -y upsun-cli sudo dnf upgrade --refresh upsun-cli
RPM (yum only) sudo yum clean expire-cache && sudo yum upgrade upsun-cli

The README's "Upgrade" section also notes that regular system package updates upgrade the CLI.

🤖 Generated with Claude Code

The Debian command, "apt-get upgrade upsun-cli", upgraded every package
on the system: apt-get upgrade does not limit itself to the packages
named. In debian:bookworm-20230612-slim, "apt-get -s upgrade tzdata"
reports 47 packages to upgrade, and "apt-get -s install --only-upgrade
tzdata" reports 1.

The apt, dnf and apk commands now upgrade only upsun-cli, and refresh
the package index first, so a new release is not missed while dnf's
metadata cache is valid. A yum command is added for older systems.

The README notes that regular system package updates also upgrade the
CLI.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

CLI builds

Built from 504fa54 (merged into the base branch). Downloads need a GitHub login, and expire after 7 days.

Platform Download
linux-amd64 cli-linux-amd64
linux-arm64 cli-linux-arm64
darwin-amd64 cli-darwin-amd64
darwin-arm64 cli-darwin-arm64
windows-amd64 cli-windows-amd64

Or download one with the GitHub CLI, e.g.:

gh run download 44064321978 -R upsun/cli -n cli-linux-amd64
chmod +x upsun
./upsun --version

On macOS, if you downloaded it with a browser, remove the quarantine attribute before running it: xattr -d com.apple.quarantine upsun.

@pjcdawkins
pjcdawkins merged commit 985c350 into main Nov 17, 2026
13 checks passed
@pjcdawkins
pjcdawkins deleted the docs/package-upgrade-commands branch November 17, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant