πŸ“£ Important update β€” access is changing on 1 October 2026

Starting 1 October 2026 at noon (UK time), this mirror will require authentication to keep apt working.
Downloading packages stays free from the GitHub repositories where they are built.
A yearly subscription gets you free immediate updates through apt and directly supports keeping this project alive. Thank you! πŸ™

πŸ”‘ Get Your Yearly Subscription

€15 / $15 / Β£15 per year β€” US dollars if your currency isn't supported.

πŸ’¬ Questions, issues or anything about this repo? Join our Discord community β€” the best place to get help and connect with other users.
β˜• Previously supported via Buy Me a Coffee? You are wonderful! Head over to our Discord and we will sort out a free lifetime subscription for you. πŸ’œ

🧹 Install Latest Ruff on Ubuntu

An extremely fast Python linter and code formatter, written in Rust

Latest version: 0.15.22 Β· updated 2026-07-16
SourceVersion
deb.griffo.io0.15.22 βœ…
Official Ubuntu🚫 not packaged
← Back to home
πŸ“Œ Installing on a specific release? Ubuntu 22.04 (jammy) Β· Ubuntu 24.04 (noble) Β· Ubuntu 25.10 (questing) Β· Ubuntu 26.04 (resolute)

What is Ruff?

Ruff is an extremely fast Python linter and code formatter, written in Rust by Astral β€” the team behind uv. With over 800 built-in rules and native re-implementations of popular plugins, a single ruff binary replaces Flake8, isort, Black, pyupgrade, autoflake and dozens of plugins, while running 10–100Γ— faster. It has become the default linter of the modern Python ecosystem, adopted by projects like FastAPI, Pandas and Hugging Face.

😀 Python tooling pain points: Managing flake8 plus a dozen plugins, isort fighting Black, minutes-long lint runs in CI, and installing linters into every single virtualenv? Ruff is one dependency-free binary that does it all in milliseconds β€” and installing it with apt makes it available system-wide, for every project and venv, without pip.
πŸš€ Always ahead of the official archives: Debian and Ubuntu freeze package versions when a release ships β€” this repository publishes new upstream releases typically within hours. A simple apt upgrade keeps you on the latest version.

⚑ Key Features of Ruff

🏎️ 10–100Γ— Faster

Lints large codebases in milliseconds where legacy tools take minutes β€” fast enough to run on every save and in every CI pipeline.

🧰 One Tool, 800+ Rules

Re-implements Flake8, isort, pyupgrade, pydocstyle, eradicate and more β€” one config in pyproject.toml replaces a stack of plugins.

πŸ–€ Drop-in Formatter

ruff format is a Black-compatible formatter β€” same style, orders of magnitude faster, no separate tool to install.

πŸ”§ Auto-fixes

Hundreds of rules come with automatic fixes: unused imports, upgraded syntax, sorted imports β€” ruff check --fix and done.

🐍 Version-aware

Targets any Python from 3.7 onward with per-version rule behavior, monorepo-friendly hierarchical configuration and per-file overrides.

πŸ”Œ Editor Integrations

A built-in language server (ruff server) powers first-class VS Code, Zed, Neovim and Helix integrations from the same binary.

πŸ† Why install it with apt?

  • System-wide, pip-free: one binary for every project, venv, CI job and user β€” no per-project installs to keep in sync
  • Perfect for Docker/CI images: bake the repo into base images and every pipeline gets current ruff automatically
  • No toolchain: no Rust, no cargo, no pip β€” a signed apt repository with prebuilt binaries for 8 architectures
  • Automatic updates: ruff releases frequently; apt upgrade keeps up so your rules never go stale
  • Pairs with uv: Astral's package manager is also served here β€” the full modern Python toolchain from one repository

πŸ“¦ Installation from deb.griffo.io

Step 1: Add Repository

sudo install -d -m 0755 /etc/apt/keyrings curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | sudo gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | sudo tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null sudo apt update
install -d -m 0755 /etc/apt/keyrings curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null apt update

Step 2: Install Ruff

sudo apt install -y ruff
apt install -y ruff

πŸš€ First run

Lint and format your project:

ruff check . # lint ruff check --fix . # lint and auto-fix ruff format . # format (Black-compatible)

πŸ“¦ Package Build Repository

The Debian packages are automatically built and maintained in this GitHub repository:

πŸ”— Related Packages

Also available from deb.griffo.io:

🎯 Perfect for: Python developers tired of slow lint runs, teams consolidating flake8/isort/Black into one tool, CI/CD pipelines and Docker images that need a current linter without pip, and anyone using uv who wants the complete Astral toolchain via apt.

πŸ’ Support This Project

If this repository saves you time and effort, please consider supporting it!

⭐ Star on GitHub 🐦 Share on Twitter

πŸ“¦ Recent releases from this repository

πŸ“š Release-specific install guides

❓ Frequently asked questions

Is Ruff in the official Ubuntu repositories?

No β€” Ruff is not packaged in the official Ubuntu archives. This repository is currently the only apt source, serving Ruff 0.15.22.

How do I install the latest Ruff on Ubuntu?

Add the deb.griffo.io repository once using the instructions above, then run: sudo apt install ruff. New releases arrive through the normal sudo apt upgrade.

Are the packages signed and how are they built?

Every package is signed with the repository's GPG key (EA0F721D231FDD3A0A17B9AC7808B4DD62C41256) and built from upstream releases in public GitHub packaging repositories that anyone can inspect.

Which Ubuntu releases are supported?

Ubuntu 22.04 Jammy, 24.04 Noble, 25.10 Questing and 26.04 Resolute.