Skip to content

Commit

Permalink
docs: add update manual (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-arts authored Nov 30, 2023
1 parent 61d87d4 commit e533a41
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
25 changes: 25 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,31 @@ cargo test
If you have any issues building because of the dependency on `rattler` checkout
it's [compile steps](https://github.com/mamba-org/rattler/tree/main#give-it-a-try)

## Update
Updating is as simple as installing, rerunning the installation script gets you the latest version.

=== "Linux & macOS"
```shell
curl -fsSL https://pixi.sh/install.sh | bash
```
Or get a specific pixi version using:
```shell
export PIXI_VERSION=vX.Y.Z && curl -fsSL https://pixi.sh/install.sh | bash
```
=== "Windows"
PowerShell:
```powershell
iwr -useb https://pixi.sh/install.ps1 | iex
```
Or get a specific pixi version using:
PowerShell:
```powershell
$Env:PIXI_VERSION="vX.Y.Z"; iwr -useb https://pixi.sh/install.ps1 | iex
```
!!! note
If you used a package manager like `brew`, `mamba`, `conda`, `paru` to install `pixi`.
Then use their builtin update mechanism. e.g. `brew update && brew upgrade pixi`

## Uninstall

To uninstall pixi from your system, simply remove the binary.
Expand Down
7 changes: 6 additions & 1 deletion install/install.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
param (
[string]$PIXI_VERSION = "latest",
[string]$PIXI_DIR = "$Env:USERPROFILE\.pixi\bin"
)

if ($Env:PIXI_VERSION) {
$PIXI_VERSION = $Env:PIXI_VERSION
} else {
$PIXI_VERSION = "latest"
}

# Repository name
$REPO = "prefix-dev/pixi"
$ARCH = "x86_64"
Expand Down

0 comments on commit e533a41

Please sign in to comment.