From 504fa548cfa7b9132b111c3fb3a69609cdee8dd8 Mon Sep 17 00:00:00 2001 From: Patrick Dawkins Date: Tue, 17 Nov 2026 10:22:10 +0000 Subject: [PATCH] docs: upgrade only the CLI package in system package instructions 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 --- README.md | 2 ++ docs/install.md | 9 ++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fcf67d9d..daaa930e 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,8 @@ Upgrade with the tool you installed the CLI with: | npm | `npm install -g upsun@latest` | | apt, dnf/yum, apk | Your system's package manager: see [docs/install.md](docs/install.md#package-repositories) | +Regular system package updates (e.g. `sudo apt update && sudo apt upgrade`) also upgrade the CLI. + ### Update notifications When a newer release is available, the CLI prints the upgrade command for your diff --git a/docs/install.md b/docs/install.md index 05c78cd9..34d93923 100644 --- a/docs/install.md +++ b/docs/install.md @@ -71,7 +71,7 @@ sudo apk add upsun-cli To upgrade: ```console -sudo apk update && sudo apk upgrade upsun-cli +sudo apk add --upgrade --update-cache upsun-cli ``` ### Ubuntu/Debian @@ -90,7 +90,7 @@ sudo apt-get install -y upsun-cli To upgrade: ```console -sudo apt-get update && sudo apt-get upgrade upsun-cli +sudo apt update && sudo apt install --only-upgrade upsun-cli ``` ### RPM (Fedora, RHEL, CentOS, AlmaLinux, Rocky) @@ -113,7 +113,10 @@ sudo dnf install -y upsun-cli To upgrade: ```console -sudo dnf upgrade -y upsun-cli +sudo dnf upgrade --refresh upsun-cli + +# On older systems with yum only +sudo yum clean expire-cache && sudo yum upgrade upsun-cli ``` ## npm