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