Skip to content

Commit d2b9036

Browse files
joshmcorreiazanieb
andauthored
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 <[email protected]>
1 parent 61569d0 commit d2b9036

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

docs/getting-started/installation.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,36 @@ uv provides a standalone installer to download and install uv:
1010

1111
=== "macOS and Linux"
1212

13+
Use `curl` to download the script and execute it with `sh`:
14+
1315
```console
1416
$ curl -LsSf https://astral.sh/uv/install.sh | sh
1517
```
1618

17-
=== "Windows"
19+
If your system doesn't have `curl`, you can use `wget`:
1820

1921
```console
20-
$ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
22+
$ wget -qO- https://astral.sh/uv/install.sh | sh
2123
```
2224

23-
Request a specific version by including it in the URL:
24-
25-
=== "macOS and Linux"
25+
Request a specific version by including it in the URL:
2626

2727
```console
2828
$ curl -LsSf https://astral.sh/uv/0.5.1/install.sh | sh
2929
```
3030

3131
=== "Windows"
3232

33+
Use `irm` to download the script and execute it with `iex`:
34+
35+
```console
36+
$ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
37+
```
38+
39+
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.
40+
41+
Request a specific version by including it in the URL:
42+
3343
```console
3444
$ powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/0.5.1/install.ps1 | iex"
3545
```

0 commit comments

Comments
 (0)