# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 podman

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

## 安装

```sh
sudo av install brew:podman
```

## 代理安全回答

podman builds and runs containers with registry and host filesystem access.

- **凭据访问:** Reads registry credentials, build secrets, environment variables, and mounted files.
- **远程变更:** Can push images and change container or pod state.
- **发布/制品风险:** Can build and publish container images.
- **推荐控制:** Gate pushes, privileged runs, host mounts, and kube generation.
- **代理使用指南:** Allow local inspect/build with limited mounts; require approval for publish or privileged actions.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install podman
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install podman
```

  证据: MacPorts ports tree: sysutils/podman/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add podman
```

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

- Debian apt (92%):

```sh
sudo apt install podman
```

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

- dnf (92%):

```sh
sudo dnf install podman
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#podman
```

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

- pacman (92%):

```sh
sudo pacman -S podman
```

  证据: Arch Linux sync databases: podman from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install podman
```

  证据: openSUSE Tumbleweed package metadata: podman from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/podman
```

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

- winget (92%):

```sh
winget install --id RedHat.Podman -e
```

  证据: Windows Package Manager source index: RedHat.Podman from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:podman
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/podman>
- **版本:** 6.0.2
- **来源摘要:** Tool for managing OCI containers and pods
- **主页:** <https://podman.io/>
- **仓库:** <https://github.com/podman-container-tools/podman>
- **上游文档:** <https://podman.io/>
- **许可证:** Apache-2.0 AND GPL-3.0-or-later
- **源码归档:** <https://github.com/podman-container-tools/podman/archive/refs/tags/v6.0.2.tar.gz>
- **最后更新:** 2026-07-22T08:08:47Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- podman (cli)
- podman-remote (cli)
- podmansh (cli)
- podman (别名)
- podman-remote (别名)
- podmansh (别名)

## 构建依赖

- go
- go-md2man
- make

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- 注意事项: In order to run containers locally, podman depends on a Linux kernel. One can be started manually using `podman machine` from this package. To start a podman VM automatically at login, also install the cask "podman-desktop".
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 6.0.2
- 管理器更新时间: 2026-07-22
- 本地数据: OK
- 上游仓库: https://github.com/podman-container-tools/podman
- 检测到的最新版本: v6.0.2 (当前)

## 安全说明

container infrastructure.

- **Geiger 风险:** orange / 高
- container infrastructure


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


## Credential files

- Unix: $XDG_RUNTIME_DIR/containers/auth.json, $XDG_CONFIG_HOME/containers/auth.json, ~/.config/containers/auth.json
## 源数据库详情

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

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

- Debian apt - podman - 5.4.2+ds1-2+b2: normalized package name match | Debian stable package indexes: podman from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool to manage containers and pods | https://github.com/containers/podman
- Debian apt - podman-docker - 5.4.2+ds1-2+b2: normalized package name match | Debian stable package indexes: podman-docker from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool to manage containers and pods (Docker CLI) | https://github.com/containers/podman
- Debian apt - podman-remote - 5.4.2+ds1-2+b2: normalized package name match | Debian stable package indexes: podman-remote from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool to manage containers and pods (remote CLI) | https://github.com/containers/podman
- Nix - podman: normalized package name match | nixpkgs package indexes: pkgs/by-name/po/podman/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - podman - 4.9.3+ds1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: podman from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tool to manage containers and pods | https://github.com/containers/podman
- apk - podman - 5.8.3-r1: normalized package name match | Alpine Linux edge package indexes: podman from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Simple management tool for pods, containers and images | https://podman.io/
- apk - podman-bash-completion - 5.8.3-r1: normalized package name match | Alpine Linux edge package indexes: podman-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for podman | https://podman.io/
- apk - podman-doc - 5.8.3-r1: normalized package name match | Alpine Linux edge package indexes: podman-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Simple management tool for pods, containers and images (documentation) | https://podman.io/
- apk - podman-docker - 5.8.3-r1: normalized package name match | Alpine Linux edge package indexes: podman-docker from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Emulate Docker CLI using Podman | https://podman.io/
- apk - podman-docker-doc - 5.8.3-r1: normalized package name match | Alpine Linux edge package indexes: podman-docker-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Emulate Docker CLI using Podman (documentation) | https://podman.io/
- apk - podman-docker-systemd - 5.8.3-r1: normalized package name match | Alpine Linux edge package indexes: podman-docker-systemd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Emulate Docker CLI using Podman (systemd files) | https://podman.io/
- apk - podman-fish-completion - 5.8.3-r1: normalized package name match | Alpine Linux edge package indexes: podman-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for podman | https://podman.io/
- apk - podman-openrc - 5.8.3-r1: normalized package name match | Alpine Linux edge package indexes: podman-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Simple management tool for pods, containers and images (OpenRC init scripts) | https://podman.io/
- apk - podman-remote - 5.8.3-r1: normalized package name match | Alpine Linux edge package indexes: podman-remote from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Remote CLI for Podman | https://podman.io/
- apk - podman-systemd - 5.8.3-r1: normalized package name match | Alpine Linux edge package indexes: podman-systemd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Simple management tool for pods, containers and images (systemd files) | https://podman.io/
- apk - podman-zsh-completion - 5.8.3-r1: normalized package name match | Alpine Linux edge package indexes: podman-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for podman | https://podman.io/


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure 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.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [make](https://pkg.so/zh-hans/brew/make/) - Build dependency declared by Homebrew.
- [go-md2man](https://pkg.so/zh-hans/brew/go-md2man/) - Build dependency declared by Homebrew.
- [podman-compose](https://pkg.so/zh-hans/brew/podman-compose/) - Popular package that depends on this formula.
- [astro](https://pkg.so/zh-hans/brew/astro/) - Popular package that depends on this formula.
- [crun](https://pkg.so/zh-hans/brew/crun/) - Shares pkgdb curated category or tags: cli, containers, linux, oci, runtime.
- [runme](https://pkg.so/zh-hans/brew/runme/) - Shares pkgdb curated category or tags: cli, containers, linux, oci, runtime.
- [conmon](https://pkg.so/zh-hans/brew/conmon/) - Shares pkgdb curated category or tags: cli, containers, oci, runtime, system.
- [podman-tui](https://pkg.so/zh-hans/brew/podman-tui/) - Shares pkgdb curated category or tags: cli, containers, system.
- [ctop](https://pkg.so/zh-hans/brew/ctop/) - Shares pkgdb curated category or tags: cli, containers, system.
- [podlet](https://pkg.so/zh-hans/brew/podlet/) - Shares pkgdb curated category or tags: cli, containers, system.
- [distrobox](https://pkg.so/zh-hans/brew/distrobox/) - Shares pkgdb curated category or tags: cli, containers, system.

## Combined YAML source

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