UV (Python)
Setup
# Install uv!
curl -LsSf https://astral.sh/uv/install.sh | sh
# Load uv in this shell session.
. "$HOME/.local/bin/env"
# Test it out!
uv --versionFedora
# Install uv.
sudo dnf install -y uv
# Test it out!
uv --versionRHEL
# Install uv with the official installer.
command -v curl >/dev/null || sudo dnf install -y curl-minimal
sudo dnf install -y ca-certificates
curl -LsSf https://astral.sh/uv/install.sh | sh
# Load uv in this shell session.
export PATH="$HOME/.local/bin:$PATH"
# Test it out!
uv --versionUse your package manager, yay, paru, pacman, what ever you have installed.
We are going to be showing with yay, but its the same for all of them.
# Install uv!
yay -Syu --noconfirm uv && yay -Yccc --noconfirm
# Test it out!
uv --versionopenSUSE Tumbleweed
# Install uv.
sudo zypper install -y uv
# Test it out!
uv --versionopenSUSE Leap
# Install prerequisites for the official installer.
sudo zypper install -y curl ca-certificates tar gzip
# Install uv.
curl -LsSf https://astral.sh/uv/install.sh | sh
# Load uv in this shell session.
export PATH="$HOME/.local/bin:$PATH"
# Test it out!
uv --versionCommon Commands
# Create/sync a project environment.
uv venv
uv sync
# Run a project command.
uv run <command>
# Add a dependency.
uv add <package>Real Repo Example
# Clone a real uv project.
git clone https://github.com/Midori-AI-OSS/Agents-Runner
cd Agents-Runner
# Install dependencies from the project.
uv sync
# Run a quick command in the project environment.
uv run python -V
# Project quick start (requires Docker + ffmpeg).
uv run main.py