Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add update manual #521

Merged
merged 2 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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