# 使用 Homebrew, apk, dnf, MacPorts, Nix, apt, pacman, scoop 安装 poetry

查看 poetry 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

## 代理安全回答

poetry manages Python dependencies and package publishing.

- **凭据访问:** Reads PyPI tokens, repository credentials, environment variables, and project config.
- **远程变更:** Can install dependencies and interact with package repositories.
- **发布/制品风险:** Can build and publish Python packages.
- **推荐控制:** Gate publish, config, and credentialed repository operations.
- **代理使用指南:** Allow lock/test/build; require approval for publish and credential changes.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install poetry
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install poetry
```

  证据: 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
```

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

- dnf (92%):

```sh
sudo dnf install poetry
```

  证据: Fedora Rawhide package metadata: poetry from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#poetry
```

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

- Debian apt (92%):

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

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

- pacman (92%):

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

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:poetry
- **软件包管理器:** Homebrew
- **版本:** 2.4.1
- **来源摘要:** Python package management tool
- **主页:** <https://python-poetry.org/>
- **仓库:** <https://github.com/python-poetry/poetry>
- **最后更新:** 2026-06-20T11:12:23Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- poetry (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.4.1

## 安全说明

没有找到 poetry 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 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
## 其他软件包管理器记录

- Debian apt - python3-poetry - 2.1.2+dfsg-1+deb13u1: 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-4.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Python dependency management and packaging made easy | https://python-poetry.org/
- dnf - python3-poetry - 2.4.1-4.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## Combined YAML source

View the package source record on GitHub. [combined/poetry.yml](https://github.com/mxcl/pkgdb/blob/main/combined/poetry.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
