From d2b9036eda2ecbc0eb7383fd5a23f333f111ebee Mon Sep 17 00:00:00 2001 From: joshmcorreia <86431308+joshmcorreia@users.noreply.github.com> Date: Wed, 13 Nov 2024 09:51:30 -0800 Subject: [PATCH] Add wget instructions for systems without curl (#8630) ## Summary Adds wget instructions for linux installations that don't come with `curl`. ## Test Plan This was tested on Ubuntu 20.04, Ubuntu 22.04, Ubuntu 24.04, and Debian 11. --------- Co-authored-by: Zanie Blue --- docs/getting-started/installation.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index 7d37a997c..6b9b4e8b3 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -10,19 +10,19 @@ uv provides a standalone installer to download and install uv: === "macOS and Linux" + Use `curl` to download the script and execute it with `sh`: + ```console $ curl -LsSf https://astral.sh/uv/install.sh | sh ``` -=== "Windows" + If your system doesn't have `curl`, you can use `wget`: ```console - $ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" + $ wget -qO- https://astral.sh/uv/install.sh | sh ``` -Request a specific version by including it in the URL: - -=== "macOS and Linux" + Request a specific version by including it in the URL: ```console $ curl -LsSf https://astral.sh/uv/0.5.1/install.sh | sh @@ -30,6 +30,16 @@ Request a specific version by including it in the URL: === "Windows" + Use `irm` to download the script and execute it with `iex`: + + ```console + $ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" + ``` + + Changing the [execution policy](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.4#powershell-execution-policies) allows running a script from the internet. + + Request a specific version by including it in the URL: + ```console $ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/0.5.1/install.ps1 | iex" ```