# 使用 Homebrew, apk, apt, Nix, pacman, zypper, dnf 安装 iproute2

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

## 安装

```sh
sudo av install brew:iproute2
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install iproute2
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add iproute2
```

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

- Debian apt (92%):

```sh
sudo apt install iproute2
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#iproute2
```

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

- pacman (92%):

```sh
sudo pacman -S iproute2
```

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

- zypper (92%):

```sh
sudo zypper install iproute2
```

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

- dnf (92%):

```sh
sudo dnf install rdma-core
```

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

## 软件包事实

- **软件包键:** brew:iproute2
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/iproute2>
- **版本:** 7.1.0
- **来源摘要:** Linux routing utilities
- **主页:** <https://wiki.linuxfoundation.org/networking/iproute2>
- **上游文档:** <https://wiki.linuxfoundation.org/networking/iproute2>
- **许可证:** GPL-2.0-only
- **源码归档:** <https://mirrors.edge.kernel.org/pub/linux/utils/net/iproute2/iproute2-7.1.0.tar.xz>
- **最后更新:** 2026-06-16T12:38:49Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ctstat (cli)
- dcb (cli)
- devlink (cli)
- dpll (cli)
- genl (cli)
- lnstat (cli)
- netshaper (cli)
- nstat (cli)
- rdma (cli)
- routel (cli)
- rtacct (cli)
- rtmon (cli)
- rtstat (cli)
- tc (cli)
- tipc (cli)
- vdpa (cli)
- ctstat (别名)
- dcb (别名)
- devlink (别名)
- dpll (别名)
- genl (别名)
- lnstat (别名)
- netshaper (别名)
- nstat (别名)
- rdma (别名)
- routel (别名)
- rtacct (别名)
- rtmon (别名)
- rtstat (别名)
- tc (别名)
- tipc (别名)
- vdpa (别名)

## 依赖

- elfutils
- libbpf
- libcap
- libmnl
- libtirpc

## 构建依赖

- bison
- flex
- pkgconf

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 7.1.0
- 管理器更新时间: 2026-06-16
- 本地数据: OK
- 上游仓库: https://wiki.linuxfoundation.org/networking/iproute2
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

iproute2 is the Linux networking utility suite centered on ip and tc, used to configure addresses, routes, tunnels, neighbors, links, traffic control, and related kernel networking features.

### 项目历史

The Linux Foundation networking page describes iproute2 as a collection of utilities for TCP/IP networking and traffic control in Linux. It names Alexey Kuznetsov as the original author and connects his work to the Linux kernel QoS implementation, with maintenance by Stephen Hemminger.

The project became the modern Linux counterpart to older net-tools commands such as ifconfig and route. The same Linux Foundation page notes that many manuals continued to refer to older tools even though ifconfig behaved inadequately in modern environments, and it highlights iproute2's better coverage of modern networking features.

### 采用历史

iproute2's adoption is closely tied to Linux distribution defaults and kernel networking development. The Linux Foundation page says it is usually shipped as iproute or iproute2, with ip and tc as the most important tools, and that new versions are announced on the netdev mailing list.

Homebrew packages iproute2 as a Linux-only formula, which is fitting: the suite is not a portable Unix compatibility layer but a userspace face for Linux kernel netlink and traffic-control facilities.

### 使用方式

Administrators use iproute2 for address and link configuration, routing tables, policy routing, tunnels, neighbor entries, bridges, socket statistics, and traffic-control qdiscs/classes/filters. Its tools are accompanied by manpages and detailed usage messages, which suits both interactive repair and scripted provisioning.

The package exposes more of Linux networking than legacy tools because it tracks kernel features through netlink-oriented utilities. That makes it important in container hosts, routers, CI images, embedded Linux, network namespaces, and any environment where tc, ss, bridge, devlink, or rdma commands are part of operational vocabulary.

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

iproute2 is package-nerd infrastructure: many packages merely run on Linux, but iproute2 is how Linux networking is observed and shaped from user space. It also demonstrates a packaging boundary where the right target is Linux only, with dependencies such as libbpf, libmnl, elfutils, and kernel-header-adjacent build logic.

### 时间线

- Project origin: Alexey Kuznetsov authors the suite around Linux routing, QoS, and traffic control work.
- Maintenance era: Stephen Hemminger maintains the project through kernel.org and netdev workflows.
- Distribution era: Linux distributions ship the suite as iproute or iproute2, with ip and tc as the central tools.
- 2026: Homebrew formula metadata packages iproute2 7.1.0 for Linux ARM64 and x86_64 bottles.

### Related projects

- net-tools is the legacy tool family that iproute2 largely supersedes for modern Linux networking.
- The Linux kernel networking stack, rtnetlink/netlink, libbpf, libmnl, and traffic-control subsystems are tightly related.
- LARTC documentation and the netdev mailing list are part of the surrounding operational and development culture.

### 来源

- Homebrew formula metadata supplies packaging target, Linux-only requirement, dependency shape, and formula version context.
- The Linux Foundation networking page supplies project purpose, authorship, maintainer, replacement context, distribution names, main tools, and source workflow.
- The input curation supplies documented configuration file paths from the existing batch record.


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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/iproute2/rt_tables, /usr/lib/iproute2/rt_tables, /etc/iproute2/tc_cls
## 源数据库详情

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

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

- Debian apt - iproute2 - 6.15.0-1: normalized package name match | Debian stable package indexes: iproute2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | networking and traffic control tools | https://wiki.linuxfoundation.org/networking/iproute2
- Nix - iproute2: normalized package name match | nixpkgs package indexes: pkgs/by-name/ip/iproute2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - iproute2 - 6.1.0-1ubuntu6: normalized package name match | Ubuntu 24.04 LTS package indexes: iproute2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | networking and traffic control tools | https://wiki.linuxfoundation.org/networking/iproute2
- Ubuntu apt - iproute2-doc - 6.1.0-1ubuntu6: normalized package name match | Ubuntu 24.04 LTS package indexes: iproute2-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | networking and traffic control tools - documentation | https://wiki.linuxfoundation.org/networking/iproute2
- apk - iproute2 - 7.1.0-r0: normalized package name match | Alpine Linux edge package indexes: iproute2 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | IP Routing Utilities | https://wiki.linuxfoundation.org/networking/iproute2
- apk - iproute2-bash-completion - 7.1.0-r0: normalized package name match | Alpine Linux edge package indexes: iproute2-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Bash completions for iproute2 | https://wiki.linuxfoundation.org/networking/iproute2
- apk - iproute2-dev - 7.1.0-r0: normalized package name match | Alpine Linux edge package indexes: iproute2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | IP Routing Utilities (development files) | https://wiki.linuxfoundation.org/networking/iproute2
- apk - iproute2-doc - 7.1.0-r0: normalized package name match | Alpine Linux edge package indexes: iproute2-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | IP Routing Utilities (documentation) | https://wiki.linuxfoundation.org/networking/iproute2
- apk - iproute2-minimal - 7.1.0-r0: normalized package name match | Alpine Linux edge package indexes: iproute2-minimal from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | IP Routing Utilities (/sbin/ip only) | https://wiki.linuxfoundation.org/networking/iproute2
- apk - iproute2-rdma - 7.1.0-r0: normalized package name match | Alpine Linux edge package indexes: iproute2-rdma from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | IP Routing Utilities (rdma utilities) | https://wiki.linuxfoundation.org/networking/iproute2
- apk - iproute2-ss - 7.1.0-r0: normalized package name match | Alpine Linux edge package indexes: iproute2-ss from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | IP Routing Utilities (socket statistics tool) | https://wiki.linuxfoundation.org/networking/iproute2
- apk - iproute2-tc - 7.1.0-r0: normalized package name match | Alpine Linux edge package indexes: iproute2-tc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | IP Routing Utilities (traffic control and XDP support) | https://wiki.linuxfoundation.org/networking/iproute2
- pacman - iproute2 - 7.1.0-1: normalized package name match | Arch Linux sync databases: iproute2 from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | IP Routing Utilities | https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
- zypper - iproute2 - 7.1-1.3: normalized package name match | openSUSE Tumbleweed package metadata: iproute2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Linux network configuration utilities | https://wiki.linuxfoundation.org/networking/iproute2
- zypper - iproute2-arpd - 7.1-1.3: normalized package name match | openSUSE Tumbleweed package metadata: iproute2-arpd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Userspace ARP daemon | https://wiki.linuxfoundation.org/networking/iproute2
- zypper - iproute2-bash-completion - 7.1-1.3: normalized package name match | openSUSE Tumbleweed package metadata: iproute2-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash completion for iproute | https://wiki.linuxfoundation.org/networking/iproute2


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Documentation packages](https://pkg.so/zh-hans/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [libcap](https://pkg.so/zh-hans/brew/libcap/) - Runtime dependency declared by Homebrew.
- [elfutils](https://pkg.so/zh-hans/brew/elfutils/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [bison](https://pkg.so/zh-hans/brew/bison/) - Build dependency declared by Homebrew.
- [flex](https://pkg.so/zh-hans/brew/flex/) - Build dependency declared by Homebrew.
- [libnl](https://pkg.so/zh-hans/brew/libnl/) - Shares pkgdb curated category or tags: cli, linux, netlink, networking.
- [iproute2mac](https://pkg.so/zh-hans/brew/iproute2mac/) - Shares pkgdb curated category or tags: cli, networking, routing.
- [net-tools](https://pkg.so/zh-hans/brew/net-tools/) - Shares pkgdb curated category or tags: cli, linux, networking.
- [iputils](https://pkg.so/zh-hans/brew/iputils/) - Shares pkgdb curated category or tags: cli, linux, networking.
- [monocle](https://pkg.so/zh-hans/brew/monocle/) - Shares pkgdb curated category or tags: cli, networking, routing.
- [c-ares](https://pkg.so/zh-hans/brew/c-ares/) - Shares pkgdb curated category or tags: cli, networking.
- [unbound](https://pkg.so/zh-hans/brew/unbound/) - Shares pkgdb curated category or tags: cli, networking.
- [telnet](https://pkg.so/zh-hans/brew/telnet/) - Shares pkgdb curated category or tags: cli, networking.
- [iptables](https://pkg.so/zh-hans/brew/iptables/) - Local package facts share a topical domain. Shared terms: cli, control, libmnl, linux, networking.

## Combined YAML source

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


## 来源

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