Skip to content

Commit

Permalink
Add doc to use package managers to upgrade the CLI (vmware-tanzu#608)
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Khouzam <[email protected]>
  • Loading branch information
marckhouzam authored Dec 8, 2023
1 parent 6f528f5 commit e9afe32
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions docs/quickstart/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ brew tap vmware-tanzu/tanzu # Only needs to be done once for the machine
brew install tanzu-cli
```

To upgrade to a new release: `brew update && brew upgrade tanzu-cli`

To uninstall: `brew uninstall tanzu-cli`

#### Installing a Specific Version
Expand All @@ -53,11 +55,11 @@ a specific version by first extracting it to a local tap:

```console
brew tap-new local/tap
brew extract --version=0.90.1 vmware-tanzu/tanzu/tanzu-cli local/tap
brew install tanzu-cli@0.90.1
brew extract --version=1.0.0 vmware-tanzu/tanzu/tanzu-cli local/tap
brew install tanzu-cli@1.0.0

# To uninstall such an installation
brew uninstall tanzu-cli@0.90.1
brew uninstall tanzu-cli@1.0.0
```

#### Installing a Pre-Release
Expand Down Expand Up @@ -93,9 +95,11 @@ you can explicitly specify the version you want to install using the `--version`

```console
choco install tanzu-cli --version <version>
# example: choco install tanzu-cli --version 0.90.0
# example: choco install tanzu-cli --version 1.0.0
```

To upgrade to a new release: `choco upgrade tanzu-cli`

To uninstall: `choco uninstall tanzu-cli`

#### Installing a Specific Version
Expand Down Expand Up @@ -136,6 +140,8 @@ sudo apt update
sudo apt install -y tanzu-cli
```

To upgrade to a new release: `sudo apt update && sudo apt upgrade -y tanzu-cli`

To uninstall: `sudo apt remove tanzu-cli`

#### Installing a Specific Version
Expand Down Expand Up @@ -188,6 +194,8 @@ EOF
sudo yum install -y tanzu-cli # dnf install can also be used
```

To upgrade to a new release: `sudo yum update -y tanzu-cli`

To uninstall: `sudo yum remove tanzu-cli`

#### Installing a Specific Version
Expand Down

0 comments on commit e9afe32

Please sign in to comment.