# Install poetry with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop

Python package management tool. Version 2.4.1 via Homebrew; verified 2026-06-20.

## Install

```sh
sudo av install brew:poetry
```

## Agent safety answer

poetry manages Python dependencies and package publishing.

- **Credential access:** Reads PyPI tokens, repository credentials, environment variables, and project config.
- **Remote mutation:** Can install dependencies and interact with package repositories.
- **Publish/artifact risk:** Can build and publish Python packages.
- **Recommended control:** Gate publish, config, and credentialed repository operations.
- **Agent-use guidance:** Allow lock/test/build; require approval for publish and credential changes.

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install poetry
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install poetry
```

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

### Linux

- apk (92%):

```sh
sudo apk add poetry
```

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

- Debian apt (92%):

```sh
sudo apt install python3-poetry
```

  Evidence: Debian stable package indexes: python3-poetry from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install poetry
```

  Evidence: Fedora Rawhide package metadata: poetry 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#poetry
```

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

- pacman (92%):

```sh
sudo pacman -S python-poetry
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/poetry
```

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

## Package facts

- **Package key:** brew:poetry
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/poetry>
- **Version:** 2.4.1
- **Source summary:** Python package management tool
- **Homepage:** <https://python-poetry.org/>
- **Repository:** <https://github.com/python-poetry/poetry>
- **Upstream docs:** <https://python-poetry.org/docs>
- **License:** MIT
- **Source archive:** <https://files.pythonhosted.org/packages/c0/02/a309e58943f77f1947e4a658a9606933ab4a7b9f040025f4e25daf5fafbb/poetry-2.4.1.tar.gz>
- **Last updated:** 2026-06-20T11:12:23Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- poetry (cli)
- poetry (alias)

## Dependencies

- certifi
- cffi
- python@3.14
- zstd

## Build dependencies

- cmake
- ninja
- rust

## Uses from macOS

- libffi

## 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: 2.4.1
- Package-manager updated: 2026-06-20
- Local data: ok
- Upstream repository: https://python-poetry.org/
- info: Release/tag comparison is only available for GitHub repositories.

## Security Notes

No matching local secret-handling manifest was found for poetry. 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

- macOS: ~/Library/Application Support/pypoetry/auth.toml, ~/Library/Preferences/pypoetry/auth.toml
- Unix: ~/.config/pypoetry/auth.toml, $XDG_CONFIG_HOME/pypoetry/auth.toml

## Credential files

- macOS: ~/Library/Application Support/pypoetry/auth.toml, ~/Library/Preferences/pypoetry/auth.toml
- Unix: ~/.config/pypoetry/auth.toml, $XDG_CONFIG_HOME/pypoetry/auth.toml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** poetry
- **Version Scheme:** 0
- **Revision:** 4
- **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

- Debian apt - python3-poetry - 2.1.2+dfsg-1: normalized package name match | Debian stable package indexes: python3-poetry from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python dependency management and packaging made easy (Python 3) | https://python-poetry.org/
- Nix - poetry: normalized package name match | nixpkgs package indexes: pkgs/by-name/po/poetry/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - python3-poetry - 1.8.2+dfsg-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-poetry from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Python dependency management and packaging made easy (Python 3) | https://python-poetry.org/
- apk - poetry - 2.3.3-r0: normalized package name match | Alpine Linux edge package indexes: poetry from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Python3 dependency management and packaging system | https://python-poetry.org/
- apk - poetry-pyc - 2.3.3-r0: normalized package name match | Alpine Linux edge package indexes: poetry-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for poetry | https://python-poetry.org/
- dnf - poetry - 2.4.1-3.fc45: normalized package name match | Fedora Rawhide package metadata: poetry from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Python dependency management and packaging made easy | https://python-poetry.org/
- dnf - python3-poetry - 2.4.1-3.fc45: normalized package name match | Fedora Rawhide package metadata: python3-poetry from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Python dependency management and packaging made easy | https://python-poetry.org/
- pacman - python-poetry - 2.4.1-1: normalized package name match | Arch Linux sync databases: python-poetry from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Python dependency management and packaging made easy | https://python-poetry.org
- MacPorts - poetry: normalized package name match | MacPorts ports tree: python/poetry/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/poetry: normalized package name match | Scoop official bucket manifest trees: bucket/poetry.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Related links

- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [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.
- [cffi](https://www.automicvault.com/pkg/brew/cffi/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [zstd](https://www.automicvault.com/pkg/brew/zstd/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [ninja](https://www.automicvault.com/pkg/brew/ninja/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [pdm](https://www.automicvault.com/pkg/brew/pdm/) - Shares av.db curated category or tags: cli, dependency-management, developer-tools, package-management, package-manager.
- [pipx](https://www.automicvault.com/pkg/brew/pipx/) - Shares av.db curated category or tags: cli, developer-tools, package-management, python, virtual-environments.
- [hatch](https://www.automicvault.com/pkg/brew/hatch/) - Shares av.db curated category or tags: cli, developer-tools, packaging, python, virtual-environments.
- [rye](https://www.automicvault.com/pkg/brew/rye/) - Shares av.db curated category or tags: cli, dependency-management, developer-tools, package-manager, python.
- [abi3audit](https://www.automicvault.com/pkg/brew/abi3audit/) - Shares av.db curated category or tags: cli, developer-tools, packaging, python.
- [clib](https://www.automicvault.com/pkg/brew/clib/) - Shares av.db curated category or tags: cli, dependency-management, developer-tools, package-management, package-manager.
- [conan](https://www.automicvault.com/pkg/brew/conan/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager, python.
- [conda-lock](https://www.automicvault.com/pkg/brew/conda-lock/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager, python.
- [pipenv](https://www.automicvault.com/pkg/brew/pipenv/) - Both packages touch the same language runtime or ecosystem. Shared terms: certifi, cli, dependency, dependency-management, developer.

## Combined YAML source

View the package source record on GitHub. [combined/poetry.yml](https://github.com/automic-vault/db/blob/main/combined/poetry.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
- curated agent safety answer
