温馨提示×

dumpcap在debian在哪下载

小樊
49
2026-09-21 22:44:07
栏目: 智能运维

在 Debian 系统里,dumpcap 通常不需要单独去“下载”,它是 Wireshark 套件的一部分,由 Debian 官方仓库提供。

1. 用 apt 直接安装(推荐)

sudo apt update
sudo apt install wireshark-common

dumpcap 就包含在 wireshark-common 包中。

安装完成后,可执行文件一般在:

/usr/bin/dumpcap

你可以用下面命令确认:

which dumpcap
dumpcap --version

2. 只想要 dumpcap(不装 GUI)

如果你不想装 Wireshark 图形界面,只装命令行相关部分:

sudo apt install wireshark-common

而不是 wireshark(那个是 GUI)。


3. 使用权限问题(很重要)

dumpcap 抓包需要权限,Debian 下一般这样做:

  • 安装时会问是否允许非 root 用户抓包
    选 Yes
  • 或手动把用户加入 wireshark 组:
sudo usermod -aG wireshark $USER

然后重新登录或重启。

查看组:

groups

4. 如果你问的是“源码 / 官网下载”

  • 官方地址(一般不推荐 Debian 用户用): https://www.wireshark.org/download.html
  • Debian 官方包页: https://packages.debian.org/search?keywords=wireshark-common

小结(最简单的一条)

sudo apt update && sudo apt install wireshark-common

如果你告诉我:

  • Debian 版本(如 11 / 12)
  • 是否用于服务器 / 容器
  • 是否需要非 root 抓包

我可以给你更精确的配置示例。

0 踩