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

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

## 安装

```sh
sudo av install brew:duc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install duc
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add duc
```

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

- Debian apt (92%):

```sh
sudo apt install duc
```

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

- dnf (92%):

```sh
sudo dnf install duc
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#duc
```

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

- zypper (92%):

```sh
sudo zypper install duc
```

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

## 软件包事实

- **软件包键:** brew:duc
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/duc>
- **版本:** 1.4.6
- **来源摘要:** Suite of tools for inspecting disk usage
- **主页:** <https://github.com/zevv/duc>
- **仓库:** <https://github.com/zevv/duc>
- **许可证:** LGPL-3.0-only
- **源码归档:** <https://github.com/zevv/duc/releases/download/1.4.6/duc-1.4.6.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- duc (cli)
- duc (别名)

## 依赖

- cairo
- gettext
- glfw
- glib
- harfbuzz
- pango
- tokyo-cabinet

## 构建依赖

- pkgconf

## macOS 提供的库

- ncurses

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.4.6
- 本地数据: OK
- 上游仓库: https://github.com/zevv/duc
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

duc is a disk-usage indexer and visualizer built for large Unix filesystems. Its niche is the middle ground between simple du-style scans and heavier monitoring systems: it indexes once, stores accumulated directory sizes, then lets users inspect the database through CLI, ncurses, X/OpenGL, or CGI views.

### 项目历史

The project documentation presents duc as a collection of tools for indexing, inspecting, and visualizing disk usage. Its homepage emphasizes scale, saying it has been tested on filesystems with hundreds of millions of files and petabytes of storage.

The public GitHub release history shows a 1.0 release candidate in 2015 followed by 1.x releases, which matches its role as a mature small Unix utility rather than a fast-moving platform.

### 采用历史

duc entered conventional Unix packaging channels: its homepage documents Debian and derivative installation, and the package metadata here shows availability across Homebrew, Debian, Fedora, Nix, Ubuntu, Alpine, and openSUSE-family packaging.

Adoption is mostly sysadmin and storage-operator oriented. It is useful where repeated recursive du scans are too expensive and where visual inspection is more useful than a single sorted list.

### 使用方式

The typical workflow is to run duc index over a filesystem subtree, then use commands such as duc ls, text UI, GUI, or web views to inspect where space is going. Its default database workflow makes it valuable on machines where disk usage analysis is repeated.

Because it keeps a database of accumulated sizes, duc is better suited to repeated exploration of large trees than one-shot disk usage commands.

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

duc is package-nerd-interesting as a classic small C/Unix utility: one executable name, man-page style documentation, broad distro packaging, and a stable purpose that has not accreted a large platform around itself.

It also represents a family of disk-usage tools that compete by data structure and UI rather than by cloud integration: ncdu, dust, gdu, and duc all solve the same operator itch with different tradeoffs.

### 时间线

- 2015: duc 1.0 release candidate appears in the GitHub release history.
- 2015: duc 1.1, 1.2, and 1.3 releases follow.
- 2016: duc 1.4 release line begins.
- 2017: duc 1.4.3 is published in the GitHub release history.

### Related projects

- duc is related in usage to ncdu, gdu, dust, and graphical disk usage viewers, but its distinguishing feature is the persistent indexed database used by several front ends.
- It also belongs to the same operational toolbox as du, df, find, and filesystem inventory scripts used by Unix administrators.

### 来源

- <https://github.com/zevv/duc>
- <http://duc.zevv.nl>
- <https://github.com/zevv/duc/releases>


## 安全说明

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

- Unix: /etc/ducrc, ~/.config/duc/ducrc, ~/.ducrc, ./.ducrc
## 源数据库详情

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

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

- Debian apt - duc - 1.4.5-1+b1: normalized package name match | Debian stable package indexes: duc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | high-performance disk usage analyzer | https://duc.zevv.nl/
- Debian apt - duc-nox - 1.4.5-1+b1: normalized package name match | Debian stable package indexes: duc-nox from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | high-performance disk usage analyzer (without X support) | https://duc.zevv.nl/
- Nix - duc: normalized package name match | nixpkgs package indexes: pkgs/by-name/du/duc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - duc - 1.4.5-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: duc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | high-performance disk usage analyzer | https://duc.zevv.nl/
- Ubuntu apt - duc-nox - 1.4.5-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: duc-nox from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | high-performance disk usage analyzer (without X support) | https://duc.zevv.nl/
- apk - duc - 1.4.5-r0: normalized package name match | Alpine Linux edge package indexes: duc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Tool for inspecting disk usage | http://duc.zevv.nl/
- apk - duc-doc - 1.4.5-r0: normalized package name match | Alpine Linux edge package indexes: duc-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Tool for inspecting disk usage (documentation) | http://duc.zevv.nl/
- dnf - duc - 1.4.6-3.fc45: normalized package name match | Fedora Rawhide package metadata: duc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Disk usage tools | https://duc.zevv.nl/
- zypper - duc - 1.4.6-1.5: normalized package name match | openSUSE Tumbleweed package metadata: duc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Collection of tools for inspecting and visualizing disk usage | https://github.com/zevv/duc


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [glib](https://pkg.so/zh-hans/brew/glib/) - Runtime dependency declared by Homebrew.
- [harfbuzz](https://pkg.so/zh-hans/brew/harfbuzz/) - Runtime dependency declared by Homebrew.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Runtime dependency declared by Homebrew.
- [pango](https://pkg.so/zh-hans/brew/pango/) - Runtime dependency declared by Homebrew.
- [cairo](https://pkg.so/zh-hans/brew/cairo/) - Runtime dependency declared by Homebrew.
- [tokyo-cabinet](https://pkg.so/zh-hans/brew/tokyo-cabinet/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [dua-cli](https://pkg.so/zh-hans/brew/dua-cli/) - Shares pkgdb curated category or tags: cli, disk-usage, filesystem, storage, system.
- [ncdu](https://pkg.so/zh-hans/brew/ncdu/) - Shares pkgdb curated category or tags: cli, disk-usage, storage, system.
- [dysk](https://pkg.so/zh-hans/brew/dysk/) - Shares pkgdb curated category or tags: cli, disk-usage, filesystem, system.
- [duf](https://pkg.so/zh-hans/brew/duf/) - Shares pkgdb curated category or tags: cli, disk-usage, filesystem, system.
- [baobab](https://pkg.so/zh-hans/brew/baobab/) - Shares pkgdb curated category or tags: cli, disk-usage, filesystem, storage, system.
- [dfc](https://pkg.so/zh-hans/brew/dfc/) - Shares pkgdb curated category or tags: cli, disk-usage, filesystem, system.
- [erdtree](https://pkg.so/zh-hans/brew/erdtree/) - Shares pkgdb curated category or tags: cli, disk-usage, filesystem, system.
- [diskonaut](https://pkg.so/zh-hans/brew/diskonaut/) - Shares pkgdb curated category or tags: cli, disk-usage, filesystem, system.
- [diskus](https://pkg.so/zh-hans/brew/diskus/) - Local package facts share a topical domain. Shared terms: cli, disk, disk-usage, filesystem, system.

## Combined YAML source

View the package source record on GitHub. [combined/duc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/duc.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
