From f984e402821d46b5dd084d0d84d7558b4b43a040 Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Wed, 29 Nov 2023 15:27:36 +0100 Subject: [PATCH 1/2] docs: add update manual --- docs/index.md | 25 +++++++++++++++++++++++++ install/install.ps1 | 7 ++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 40ca2ecef..87c9217c5 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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. diff --git a/install/install.ps1 b/install/install.ps1 index 334055fa9..e65c5acd0 100644 --- a/install/install.ps1 +++ b/install/install.ps1 @@ -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" From 58425ca62902588a4d1517beb89a32a3d4d3da46 Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Wed, 29 Nov 2023 15:36:45 +0100 Subject: [PATCH 2/2] fix: powershell command --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 87c9217c5..c31f9aeb7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -115,7 +115,7 @@ Updating is as simple as installing, rerunning the installation script gets you Or get a specific pixi version using: PowerShell: ```powershell - $Env:PIXI_VERSION=vX.Y.Z && iwr -useb https://pixi.sh/install.ps1 | iex + $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`.