# 使用 Homebrew, apk, Nix, pacman, zypper, scoop, MacPorts, dnf, apt 安装 cni-plugins

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

## 安装

```sh
sudo av install brew:cni-plugins
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cni-plugins
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dhcp
```

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

### Linux

- apk (92%):

```sh
sudo apk add cni-plugins
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#cni-plugins
```

  证据: nixpkgs package indexes: cni-plugins from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S cni-plugins
```

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

- zypper (92%):

```sh
sudo zypper install cni-plugins
```

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

- dnf (92%):

```sh
sudo dnf install dhcp-client
```

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

- Debian apt (92%):

```sh
sudo apt install vlan
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/cni-plugins
```

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

## 软件包事实

- **软件包键:** brew:cni-plugins
- **软件包管理器:** Homebrew
- **版本:** 1.9.1
- **来源摘要:** Container Network Interface plugins
- **主页:** <https://www.cni.dev>
- **仓库:** <https://github.com/containernetworking/plugins>
- **最后更新:** 2026-07-27T22:04:02+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bandwidth (别名)
- dhcp (别名)
- dummy (别名)
- firewall (别名)
- host-device (别名)
- host-local (别名)
- ipvlan (别名)
- loopback (别名)
- macvlan (别名)
- portmap (别名)
- ptp (别名)
- sbr (别名)
- static (别名)
- tap (别名)
- tuning (别名)
- vlan (别名)
- vrf (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.9.1
## 项目历史与用法

cni-plugins is the reference plugin collection for CNI, the Container Network Interface used by container runtimes and orchestrators to attach Linux and Windows containers to networks.

### 项目历史

CNI originated at CoreOS as part of rkt and became a CNCF-hosted project in 2017. The CNI specification defines the runtime-to-plugin interface, while the separate containernetworking/plugins repository maintains practical plugins such as bridge, loopback, macvlan, ptp, host-local, static, dhcp, portmap, bandwidth, tuning, firewall, and others.

### 采用历史

CNI grew with the cloud-native container ecosystem because it gave runtimes a simple, vendor-neutral networking interface. CNCF's security self-assessment names Kubernetes, Mesos, CloudFoundry, CRI-O, and others as users, and this batch input records packaging across Homebrew, Nix, Arch, Scoop, openSUSE, Alpine, and other distributions.

### 使用方式

Administrators and runtimes place CNI network configuration on disk, commonly under /etc/cni/net.d on Linux, and invoke plugin binaries with CNI environment variables and JSON configuration. The plugin set supplies common interface-creating, IPAM, and meta plugins used directly or chained together.

### 为什么软件包爱好者会关心

Package nerds care because cni-plugins is infrastructure glue: tiny binaries with stable names that container runtimes expect to find on disk. Packaging it correctly matters more than its user interface, because the package quietly determines whether local Kubernetes, CRI-O, containerd, and lab container setups can create networks.

### 时间线

- 2015: CNI spec v0.1.0 appears as the initial specification tag.
- 2017: CNCF announced hosting for Container Networking Interface.
- 2019: CNI maintainers presented introduction and deep-dive sessions at KubeCon/CloudNativeCon.
- 2020: Spec v1.0.0 removed non-list configurations.
- 2024: cni-plugins 1.x releases continued reference-plugin maintenance.

### Related projects

- containernetworking/cni contains the specification, Go libraries, and cnitool.
- Kubernetes, CRI-O, containerd integrations, Calico, Cilium, Flannel, Weave, and other network projects sit around the CNI plugin ecosystem.

### 来源

- <https://www.cni.dev/>
- <https://www.cni.dev/docs/>
- <https://www.cni.dev/docs/spec/>
- <https://github.com/containernetworking/plugins#readme>
- <https://www.cncf.io/blog/2017/05/23/cncf-hosts-container-networking-interface-cni/>
- <https://tag-security.cncf.io/community/assessments/projects/cni/self-assessment/>


## 安全说明

broad file, network, media, or database tool signal. infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- 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: /etc/cni/net.d
## 其他软件包管理器记录

- Nix - cni-plugins: normalized package name match | nixpkgs package indexes: cni-plugins from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- apk - cni-plugins - 1.9.1-r3: normalized package name match | Alpine Linux edge package indexes: cni-plugins from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Some standard networking plugins, maintained by the CNI team | https://www.cni.dev/
- apk - cni-plugins-doc - 1.9.1-r3: normalized package name match | Alpine Linux edge package indexes: cni-plugins-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Some standard networking plugins, maintained by the CNI team (documentation) | https://www.cni.dev/
- pacman - cni-plugins - 1.9.1-1: normalized package name match | Arch Linux sync databases: cni-plugins from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Some standard networking plugins, maintained by the CNI team | https://github.com/containernetworking/plugins
- zypper - cni-plugins - 1.6.2-1.8: normalized package name match | openSUSE Tumbleweed package metadata: cni-plugins from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Container Network Interface plugins | https://github.com/containernetworking/plugins
- Scoop - main/cni-plugins: normalized package name match | Scoop official bucket manifest trees: bucket/cni-plugins.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- MacPorts - dhcp: installed executable or alias match | MacPorts ports tree: net/dhcp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - vlan - 2.0.5+nmu3: installed executable or alias match | Debian stable package indexes: vlan from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ifupdown legacy integration for vlan configuration
- Nix - tap: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/ta/tap/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Nix - vlan: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/vl/vlan/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - vlan - 2.0.5ubuntu5: installed executable or alias match | Ubuntu 24.04 LTS package indexes: vlan from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ifupdown integration for vlan configuration
- apk - vlan - 2.3-r1: installed executable or alias match | Alpine Linux edge package indexes: vlan from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Scripts for configuring VLAN network interfaces | https://wiki.alpinelinux.org/wiki/Vlan
- dnf - dhcp-client - 4.4.3-27.fc45: installed executable or alias match | Fedora Rawhide package metadata: dhcp-client from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Provides the ISC DHCP client daemon and dhclient-script | https://www.isc.org/dhcp/
- dnf - dhcp-common - 4.4.3-27.fc45: installed executable or alias match | Fedora Rawhide package metadata: dhcp-common from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Common files used by ISC dhcp client, server and relay agent | https://www.isc.org/dhcp/
- dnf - dhcp-devel - 4.4.3-27.fc45: installed executable or alias match | Fedora Rawhide package metadata: dhcp-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development headers and libraries for interfacing to the DHCP server | https://www.isc.org/dhcp/
- dnf - dhcp-devel-doc - 4.4.3-27.fc45: installed executable or alias match | Fedora Rawhide package metadata: dhcp-devel-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Developer's Guide for ISC DHCP | https://www.isc.org/dhcp/


## Combined YAML source

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


## 来源

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