# 使用 Homebrew, Nix, apt 安装 pdm

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

## 安装

```sh
sudo av install brew:pdm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install pdm
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#pdm
```

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

- Debian apt (92%):

```sh
sudo apt install python3-pdm
```

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

## 软件包事实

- **软件包键:** brew:pdm
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/pdm>
- **版本:** 2.28.0
- **来源摘要:** Modern Python package and dependency manager supporting the latest PEP standards
- **主页:** <https://pdm-project.org>
- **仓库:** <https://github.com/pdm-project/pdm>
- **上游文档:** <https://pdm-project.org>
- **许可证:** MIT
- **源码归档:** <https://files.pythonhosted.org/packages/f9/d9/dd3739cb451b3ebe95ce27868e145fb108b8fc0d728d0768c6f3e51a83a0/pdm-2.28.0.tar.gz>
- **最后更新:** 2026-07-11T15:23:35+09:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- pdm (cli)
- pdm (别名)

## 依赖

- certifi
- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.28.0
- 管理器更新时间: 2026-07-11
- 本地数据: OK
- 上游仓库: https://pdm-project.org
- 信息: Release/tag comparison is only available for GitHub repositories.

## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## 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

- Linux: <PROJECT_ROOT>/pdm.toml, $XDG_CONFIG_HOME/pdm/config.toml, ~/.config/pdm/config.toml, $XDG_CONFIG_DIRS/pdm/config.toml, /etc/xdg/pdm/config.toml, $XDG_CONFIG_HOME/pdm/global-project/pdm.toml
- macOS: <PROJECT_ROOT>/pdm.toml, ~/Library/Application Support/pdm/config.toml, /Library/Application Support/pdm/config.toml, ~/Library/Application Support/pdm/global-project/pdm.toml
- Windows: <PROJECT_ROOT>\pdm.toml, %USERPROFILE%\AppData\Local\pdm\pdm\config.toml, %ProgramData%\pdm\pdm\config.toml, %USERPROFILE%\AppData\Local\pdm\pdm\global-project\pdm.toml

## Credential files

- Linux: $XDG_CONFIG_HOME/pdm/config.toml, ~/.config/pdm/config.toml
- macOS: ~/Library/Application Support/pdm/config.toml
- Windows: %USERPROFILE%\AppData\Local\pdm\pdm\config.toml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** pdm
- **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

## 其他软件包管理器记录

- Debian apt - python3-pdm - 2.20.1+ds1-2: normalized package name match | Debian stable package indexes: python3-pdm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | next generation Python package management tool | https://github.com/pdm-project/pdm
- Nix - pdm: normalized package name match | nixpkgs package indexes: pkgs/by-name/pd/pdm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Package publisher tools](https://pkg.so/zh-hans/package-publishers/) - Belongs to a package publishing or registry command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [poetry](https://pkg.so/zh-hans/brew/poetry/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools, package-management, package-manager.
- [pipx](https://pkg.so/zh-hans/brew/pipx/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, python.
- [conan](https://pkg.so/zh-hans/brew/conan/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, package-manager, python.
- [conda-lock](https://pkg.so/zh-hans/brew/conda-lock/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, package-manager, python.
- [auditwheel](https://pkg.so/zh-hans/brew/auditwheel/) - Shares pkgdb curated category or tags: cli, developer-tools, packaging, python.
- [pnpm](https://pkg.so/zh-hans/brew/pnpm/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, package-manager.
- [mint](https://pkg.so/zh-hans/brew/mint/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, package-manager.
- [composer](https://pkg.so/zh-hans/brew/composer/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, package-manager.
- [pipenv](https://pkg.so/zh-hans/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/pdm.yml](https://github.com/mxcl/pkgdb/blob/main/combined/pdm.yml)


## 来源

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