By default, uv is installed to ~/.local/bin
. If XDG_BIN_HOME
is set, it will be used instead. Similarly, if XDG_DATA_HOME
is set, the target directory will be inferred as XDG_DATA_HOME/../bin
.
To change the installation path, use UV_INSTALL_DIR
:
macOS and LinuxWindows
$ curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="/custom/path" sh
PS> powershell -ExecutionPolicy ByPass -c {$env:UV_INSTALL_DIR = "C:\Custom\Path";irm https://astral.sh/uv/install.ps1 | iex}
Disabling shell modifications
The installer may also update your shell profiles to ensure the uv binary is on your PATH
. To disable this behavior, use INSTALLER_NO_MODIFY_PATH
. For example:
$ curl -LsSf https://astral.sh/uv/install.sh | env INSTALLER_NO_MODIFY_PATH=1 sh
If installed with INSTALLER_NO_MODIFY_PATH
, subsequent operations, like uv self update
, will not modify your shell profiles.
In ephemeral environments like CI, use UV_UNMANAGED_INSTALL
to install uv to a specific path while preventing the installer from modifying shell profiles or environment variables:
$ curl -LsSf https://astral.sh/uv/install.sh | env UV_UNMANAGED_INSTALL="/custom/path" sh
The use of UV_UNMANAGED_INSTALL
will also disable self-updates (via uv self update
).
Using environment variables is recommended because they are consistent across platforms. However, options can be passed directly to the installation script. For example, to see the available options:
$ curl -LsSf https://astral.sh/uv/install.sh | sh -s -- --help
June 10, 2025
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4