Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 vnstat

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install vnstat

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install vnstat

MacPorts ports tree · net/vnstat/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add vnstat

Alpine Linux edge package indexes · vnstat · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install vnstat

Debian stable package indexes · vnstat · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install vnstat

Fedora Rawhide package metadata · vnstat · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#vnstat

nixpkgs package indexes · pkgs/by-name/vn/vnstat/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S vnstat

Arch Linux sync databases · vnstat · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install vnstat

openSUSE Tumbleweed package metadata · vnstat · 来源: download.opensuse.org

概览

软件包摘要

Console-based network traffic monitor

命令和别名

  • vnstat
  • vnstatd
  • vnstati

历史

项目历史与用法

vnStat is a console-based network traffic monitor for Linux and BSD systems. Its central design choice is to read network-interface statistics from the kernel instead of sniffing packets, which keeps resource use low regardless of traffic volume.

项目历史

Teemu Toivola's changelog records vnStat 1.0 as the initial public release on 23 September 2002. Early releases added multiple-interface support, a new database structure, parseable output, daily and monthly estimates, FHS-compliant paths, 64-bit counter handling, an FAQ, and sample PPP scripts.

The project settled into its long-running home in March 2004, when version 1.3 moved the webpage to humdi.net and added a man page. Later releases broadened it from a cron-updated text tool into a service-oriented monitor: version 1.7 in April 2009 added daemon support, PNG image output, XML output, and BSD support; version 1.12 in August 2014 added example systemd, launchd, and upstart integration while deprecating cron update examples.

Version 2.0, released in October 2018, was a major internal transition: the old C-struct dump database was replaced with SQLite, with import support for legacy databases from versions 1.3 through 1.18. The 2.x series continued to add modern outputs and retention controls, including JSON/XML improvements, five-minute resolution data, query ranges, alerts, merge support, and image-output enhancements.

采用历史

vnStat's adoption comes from its fit with always-on servers, routers, VPS hosts, and BSD/Linux machines where long-term interface totals matter more than packet-level inspection. The upstream README also documents an official container workflow and signed source-release verification, signs of a mature utility maintained for both traditional installations and containerized environments.

使用方式

Operators use `vnstat` for text queries, `vnstatd` as the background collector, and `vnstati` for image output. The README describes configurable retention at five-minute, hourly, daily, and yearly levels, plus total traffic and top-days listings; the changelog shows that JSON, XML, one-line, alert, and CGI-oriented outputs were added for scripts and dashboards.

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

vnStat is package-nerd significant because it is boring in the best way: it gives reproducible traffic accounting without packet capture privileges or heavy monitoring infrastructure. It is a common answer when someone wants long-term bandwidth totals that survive reboots and can be queried from shell scripts.

时间线

  • 2002-09-23: vnStat 1.0 initial public release.
  • 2003-07-13: Version 1.1 adds multiple-interface support and a new database structure.
  • 2004-03-08: Version 1.3 moves the webpage to humdi.net and includes a man page.
  • 2009-04-12: Version 1.7 adds daemon support, PNG image output, XML output, and BSD support.
  • 2014-08-30: Version 1.12 adds service-manager examples and deprecates cron update examples.
  • 2018-10-21: Version 2.0 replaces the legacy database format with SQLite.
  • 2025-02-08: Version 2.13 adds database merge support and more query/image-output improvements.

Related projects

  • vnStat sits near tools such as `ifconfig`, `/proc/net/dev`, BSD interface counters, and graphing/reporting front ends. Its own suite includes `vnstatd` for collection and `vnstati` for image rendering.

来源

  • vnStat CHANGES: https://raw.githubusercontent.com/vergoh/vnstat/master/CHANGES
  • vnStat README: https://raw.githubusercontent.com/vergoh/vnstat/master/README.md
  • vnStat homepage: https://humdi.net/vnstat/

安全态势

风险级别:orange

broad file, network, media, or database tool signal. formula declares a Homebrew service.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • broad file, network, media, or database tool signal
  • formula declares a Homebrew service

信号

  • metadata:service
  • text:network

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • formula 元数据声明了服务或守护进程块。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
/etc/vnstat.conf~/.vnstatrc

可执行文件

已安装的可执行文件

命令类型暴露范围备注
vnstatcli全局可执行文件
vnstatdcli全局可执行文件
vnstaticli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-26
管理器版本2.13
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://humdi.net/vnstat/

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://humdi.net/vnstat/none 置信度

安装元数据

软件包元数据

软件包键brew:vnstat
版本2.13
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/vnstat
主页https://humdi.net/vnstat/
仓库https://github.com/vergoh/vnstat
上游文档https://humdi.net/vnstat/man/vnstat.html
许可证GPL-2.0-only
源码归档https://humdi.net/vnstat/vnstat-2.13.tar.gz
依赖gd
macOS 提供的库sqlite
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务declared
注意事项To monitor interfaces other than "en0" edit $HOMEBREW_PREFIX/etc/vnstat.conf

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namevnstat
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

vnstat 2.13-1

console-based network traffic monitor

https://humdi.net/vnstat/

sudo apt install vnstat
  • Section: net
  • Architecture: amd64
  • 3 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Vnstat
Debian stable package indexes · deb.debian.org · Debian stable package indexes: vnstat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

vnstati 2.13-1

image output support for vnStat

https://humdi.net/vnstat/

sudo apt install vnstati
  • Section: net
  • Architecture: amd64
  • Source Package: vnstat
  • 4 依赖
  • normalized package name match
  • 匹配方式:Vnstat
Debian stable package indexes · deb.debian.org · Debian stable package indexes: vnstati from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

vnstat

nix profile install nixpkgs#vnstat
  • normalized package name match
  • 匹配方式:Vnstat
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/vn/vnstat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

vnstat 2.12-1

console-based network traffic monitor

https://humdi.net/vnstat/

sudo apt install vnstat
  • Section: universe/net
  • Architecture: amd64
  • 3 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Vnstat
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: vnstat from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

vnstati 2.12-1

image output support for vnStat

https://humdi.net/vnstat/

sudo apt install vnstati
  • Section: universe/net
  • Architecture: amd64
  • Source Package: vnstat
  • 4 依赖
  • normalized package name match
  • 匹配方式:Vnstat
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: vnstati from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

vnstat 2.13-r1

Console-based network traffic monitor

https://humdi.net/vnstat

sudo apk add vnstat
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: vnstat
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Vnstat
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: vnstat from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

vnstat-doc 2.13-r1

Console-based network traffic monitor (documentation)

https://humdi.net/vnstat

sudo apk add vnstat-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: vnstat
  • normalized package name match
  • 匹配方式:Vnstat
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: vnstat-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

vnstat-openrc 2.13-r1

Console-based network traffic monitor (OpenRC init scripts)

https://humdi.net/vnstat

sudo apk add vnstat-openrc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: vnstat
  • normalized package name match
  • 匹配方式:Vnstat
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: vnstat-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

vnstat-systemd 2.13-r1

Console-based network traffic monitor (systemd files)

https://humdi.net/vnstat

sudo apk add vnstat-systemd
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: vnstat
  • normalized package name match
  • 匹配方式:Vnstat
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: vnstat-systemd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

vnstat 2.13-2.fc44

Console-based network traffic monitor

http://humdi.net/vnstat/

sudo dnf install vnstat
  • License: GPL-2.0-only
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: vnstat
  • 8 依赖
  • 4 提供
  • normalized package name match
  • 匹配方式:Vnstat
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: vnstat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

vnstat-vnstati 2.13-2.fc44

Image output support for vnstat

http://humdi.net/vnstat/

sudo dnf install vnstat-vnstati
  • License: GPL-2.0-only
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: vnstat
  • 5 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Vnstat
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: vnstat-vnstati from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

vnstat 2.13-2

A console-based network traffic monitor

https://humdi.net/vnstat/

sudo pacman -S vnstat
  • License: GPL
  • Architecture: x86_64
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Vnstat
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: vnstat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

vnstat 2.13-1.4

Network Traffic Monitor

https://humdi.net/vnstat

sudo zypper install vnstat
  • License: GPL-2.0-only
  • Category: Productivity/Networking/Diagnostic
  • Architecture: x86_64
  • Source Package: vnstat
  • 8 依赖
  • 4 提供
  • normalized package name match
  • 匹配方式:Vnstat
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: vnstat from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

vnstat-cgi 2.13-1.4

Graph Visualization CGI Script for vnstat

https://humdi.net/vnstat

sudo zypper install vnstat-cgi
  • License: GPL-2.0-only
  • Category: Productivity/Networking/Diagnostic
  • Architecture: x86_64
  • Source Package: vnstat
  • 6 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Vnstat
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: vnstat-cgi from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

vnstat

sudo port install vnstat
  • normalized package name match
  • 匹配方式:Vnstat
MacPorts ports tree · api.github.com · MacPorts ports tree: net/vnstat/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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