# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 1.4.6
- **来源摘要:** Suite of tools for inspecting disk usage
- **主页:** <https://github.com/zevv/duc>
- **仓库:** <https://github.com/zevv/duc>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- duc (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.4.6
## 项目历史与用法

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
## 其他软件包管理器记录

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
