# Install ruff with Homebrew, apk, chocolatey, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Extremely fast Python linter, written in Rust. Version 0.15.20 via Homebrew; verified 2026-06-25.

## Install

```sh
sudo av install brew:ruff
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ruff
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ruff
```

  Evidence: MacPorts ports tree: devel/ruff/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add py3-ruff
```

  Evidence: Alpine Linux edge package indexes: py3-ruff from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install python3-ruff
```

  Evidence: Fedora Rawhide package metadata: python3-ruff from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#ruff
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ru/ruff/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S ruff
```

  Evidence: Arch Linux sync databases: ruff from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install python311-ruff
```

  Evidence: openSUSE Tumbleweed package metadata: python311-ruff from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install ruff
```

  Evidence: Chocolatey community package catalog: ruff from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='9.1916','tektoncd-cli'

- Scoop (92%):

```sh
scoop install main/ruff
```

  Evidence: Scoop official bucket manifest trees: bucket/ruff.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id astral-sh.ruff -e
```

  Evidence: Windows Package Manager source index: astral-sh.ruff from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:ruff
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ruff>
- **Version:** 0.15.20
- **Source summary:** Extremely fast Python linter, written in Rust
- **Homepage:** <https://docs.astral.sh/ruff/>
- **Repository:** <https://github.com/astral-sh/ruff>
- **Upstream docs:** <https://docs.astral.sh/ruff>
- **License:** MIT
- **Source archive:** <https://github.com/astral-sh/ruff/archive/refs/tags/0.15.20.tar.gz>
- **Last updated:** 2026-06-25T20:08:45Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- ruff (cli)
- ruff (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.15.20
- Package-manager updated: 2026-06-25
- Local data: ok
- Upstream repository: https://github.com/astral-sh/ruff
- Upstream latest detected: 0.15.20 (current)

## Security Notes

No matching local secret-handling manifest was found for ruff. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: pyproject.toml, ruff.toml, .ruff.toml
- Windows: pyproject.toml, ruff.toml, .ruff.toml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ruff
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - ruff: normalized package name match | nixpkgs package indexes: pkgs/by-name/ru/ruff/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - py3-ruff - 0.15.15-r0: normalized package name match | Alpine Linux edge package indexes: py3-ruff from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Extremely fast Python linter | https://github.com/astral-sh/ruff
- apk - ruff - 0.15.15-r0: normalized package name match | Alpine Linux edge package indexes: ruff from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Extremely fast Python linter | https://github.com/astral-sh/ruff
- apk - ruff-bash-completion - 0.15.15-r0: normalized package name match | Alpine Linux edge package indexes: ruff-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for ruff | https://github.com/astral-sh/ruff
- apk - ruff-fish-completion - 0.15.15-r0: normalized package name match | Alpine Linux edge package indexes: ruff-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for ruff | https://github.com/astral-sh/ruff
- apk - ruff-pyc - 0.15.15-r0: normalized package name match | Alpine Linux edge package indexes: ruff-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for ruff | https://github.com/astral-sh/ruff
- apk - ruff-zsh-completion - 0.15.15-r0: normalized package name match | Alpine Linux edge package indexes: ruff-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for ruff | https://github.com/astral-sh/ruff
- dnf - python3-ruff - 0.15.16-2.fc45: normalized package name match | Fedora Rawhide package metadata: python3-ruff from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Importable Python module for ruff | https://github.com/astral-sh/ruff
- dnf - ruff - 0.15.16-2.fc45: normalized package name match | Fedora Rawhide package metadata: ruff from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Extremely fast Python linter and code formatter | https://github.com/astral-sh/ruff
- pacman - ruff - 0.15.16-1: normalized package name match | Arch Linux sync databases: ruff from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | An extremely fast Python linter, written in Rust | https://github.com/astral-sh/ruff
- zypper - python311-ruff - 0.15.16-1.1: normalized package name match | openSUSE Tumbleweed package metadata: python311-ruff from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | An extremely fast Python linter, written in Rust | https://github.com/astral-sh/ruff
- zypper - python313-ruff - 0.15.16-1.1: normalized package name match | openSUSE Tumbleweed package metadata: python313-ruff from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | An extremely fast Python linter, written in Rust | https://github.com/astral-sh/ruff
- zypper - python314-ruff - 0.15.16-1.1: normalized package name match | openSUSE Tumbleweed package metadata: python314-ruff from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | An extremely fast Python linter, written in Rust | https://github.com/astral-sh/ruff
- MacPorts - ruff: normalized package name match | MacPorts ports tree: devel/ruff/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - ruff: normalized package name match | Chocolatey community package catalog: ruff from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='9.1916','tektoncd-cli'
- Scoop - main/ruff: normalized package name match | Scoop official bucket manifest trees: bucket/ruff.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [flake8](https://www.automicvault.com/pkg/brew/flake8/) - Shares av.db curated category or tags: cli, developer-tools, python, static-analysis.
- [isort](https://www.automicvault.com/pkg/brew/isort/) - Shares av.db curated category or tags: cli, developer-tools, linter, python.
- [python-lsp-server](https://www.automicvault.com/pkg/brew/python-lsp-server/) - Shares av.db curated category or tags: cli, developer-tools, python, static-analysis.
- [rumdl](https://www.automicvault.com/pkg/brew/rumdl/) - Shares av.db curated category or tags: cli, developer-tools, linter, rust.
- [vermin](https://www.automicvault.com/pkg/brew/vermin/) - Shares av.db curated category or tags: cli, developer-tools, python, static-analysis.
- [abi3audit](https://www.automicvault.com/pkg/brew/abi3audit/) - Shares av.db curated category or tags: cli, developer-tools, python.
- [chardet](https://www.automicvault.com/pkg/brew/chardet/) - Shares av.db curated category or tags: cli, developer-tools, python.
- [dotenv-linter](https://www.automicvault.com/pkg/brew/dotenv-linter/) - Shares av.db curated category or tags: cli, developer-tools, linter, rust, static-analysis.
- [ty](https://www.automicvault.com/pkg/brew/ty/) - Both packages touch the same language runtime or ecosystem. Shared terms: analysis, cli, developer, developer-tools, extremely.
- [uv](https://www.automicvault.com/pkg/brew/uv/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, extremely, fast.

## Combined YAML source

View the package source record on GitHub. [combined/ruff.yml](https://github.com/automic-vault/db/blob/main/combined/ruff.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
