Automic VaultAutomic Vault

brew

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

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ncdu

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install ncdu

MacPorts ports tree · sysutils/ncdu/Portfile · 来源: api.github.com

Linux

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

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

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

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

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

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

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

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

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

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

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

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

概览

软件包摘要

NCurses Disk Usage

命令和别名

  • ncdu

历史

项目历史与用法

ncdu, NCurses Disk Usage, is a text-mode disk usage analyzer built for finding space hogs where a graphical disk viewer is unavailable or unwanted. Upstream explicitly frames it as fast, simple, easy to use, and portable across POSIX-like systems.

项目历史

The 1.x release history reaches a first stable release on 2007-04-06. The project matured around practical filesystem inspection: deletion from the UI in 1.1, apparent-size/disk-usage toggling and refresh in 1.3, hard-link detection in 1.6, export/import workflows in 1.9, extended file information in 1.13, and many portability fixes for Linux, macOS, Cygwin, and other Unix-like environments.

The project later split into a maintained C 1.x branch and a Zig 2.x branch. The 2.0 beta line began on 2021-07-22 with features based on ncdu 1.16, lower memory use in many scenarios, and improved hard-link counting; 2.0 followed on 2021-12-21 requiring Zig 0.9. Upstream describes 1.x as an LTS C version that lags on features and performance but remains maintained and usable.

采用历史

ncdu is the standout adoption story in this batch. It is packaged across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, Nix, MacPorts, and other ecosystems, and the Homebrew formula API response consulted for this July 2026 batch reported 2,878 install-on-request events in 30 days and 56,718 in 365 days.

使用方式

The common package-nerd workflow is `ncdu /path` on servers, containers, build machines, and full developer laptops, followed by keyboard navigation into large directories and cautious deletion from inside the TUI. It is also used non-interactively by exporting scans with `-o` and reloading them with `-f`, which is useful when collecting filesystem data from a remote or restricted environment and inspecting it later.

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

ncdu is a canonical example of a small Unix tool that beats heavier GUI alternatives for a frequent operations problem. It sits next to `du`, `find`, and `df`: not replacing them, but turning their disk-usage data into an interactive browser that is comfortable over SSH.

时间线

  • 2007-04-06: ncdu 1.0 first stable release.
  • 2012-09-27: 1.9 added dump-to-file and load-from-file workflows.
  • 2018-01-29: 1.13 added extended information mode and experimental color support.
  • 2021-07-22: 2.0-beta1 announced the Zig branch based on ncdu 1.16.
  • 2025-03-05: 1.22 and 2.8 landed on the maintained C and Zig lines.

Related projects

  • du, ncurses, Zig, POSIX filesystems

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 2 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

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

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/ncdu.conf~/.config/ncdu/config

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

https://dev.yorhel.nl/ncdu

安装元数据

软件包元数据

软件包键brew:ncdu
版本2.9.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ncdu
主页https://dev.yorhel.nl/ncdu
仓库https://code.blicky.net/yorhel/ncdu
上游文档https://dev.yorhel.nl/ncdu
许可证MIT
源码归档https://dev.yorhel.nl/download/ncdu-2.9.2.tar.gz
最后更新2026-06-14T14:13:25-04:00
Pulseupdated
依赖ncurses, zstd
构建依赖pkgconf, zig@0.15
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namencdu
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%

ncdu 1.22-1

ncurses disk usage viewer

https://dev.yorhel.nl/ncdu/

sudo apt install ncdu
  • Section: admin
  • Architecture: amd64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Ncdu
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ncdu from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

ncdu

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

ncdu 1.19-0.1

ncurses disk usage viewer

https://dev.yorhel.nl/ncdu/

sudo apt install ncdu
  • Section: universe/admin
  • Architecture: amd64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Ncdu
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ncdu from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

ncdu 1.22-r2

Text-based disk usage viewer

https://dev.yorhel.nl/ncdu

sudo apk add ncdu
  • License: MIT
  • Architecture: x86_64
  • Source Package: ncdu
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ncdu
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ncdu from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

ncdu-doc 1.22-r2

Text-based disk usage viewer (documentation)

https://dev.yorhel.nl/ncdu

sudo apk add ncdu-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: ncdu
  • normalized package name match
  • 匹配方式:Ncdu
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ncdu-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

ncdu 2.9.2-2.fc44

Text-based disk usage viewer

https://dev.yorhel.nl/ncdu/

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

ncdu 2.9.2-1

Disk usage analyzer with an ncurses interface

https://dev.yorhel.nl/ncdu

sudo pacman -S ncdu
  • License: MIT
  • Architecture: x86_64
  • 5 依赖
  • normalized package name match
  • 匹配方式:Ncdu
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: ncdu from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

ncdu 1.22-1.3

NCurses Disk Usage

https://dev.yorhel.nl/ncdu/

sudo zypper install ncdu
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ncdu
  • 3 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ncdu
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: ncdu from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

ncdu

sudo port install ncdu
  • normalized package name match
  • 匹配方式:Ncdu
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/ncdu/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