# 使用 Homebrew, apt, MacPorts, Nix, zypper 安装 di

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

## 安装

```sh
sudo av install brew:di
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install di
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install di
```

  证据: MacPorts ports tree: sysutils/di/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install di
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#di
```

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

- zypper (92%):

```sh
sudo zypper install di
```

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

## 软件包事实

- **软件包键:** brew:di
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/di>
- **版本:** 6.2.2.2
- **来源摘要:** Advanced df-like disk information utility
- **主页:** <https://diskinfo-di.sourceforge.io/>
- **上游文档:** <https://diskinfo-di.sourceforge.io/>
- **许可证:** Zlib
- **源码归档:** <https://downloads.sourceforge.net/project/diskinfo-di/di-6.2.2.2.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- di (cli)
- di (别名)

## 构建依赖

- cmake
- pkgconf

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 6.2.2.2
- 本地数据: OK
- 上游仓库: https://diskinfo-di.sourceforge.io/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

di is a portable disk information utility that expands on the traditional df command. It reports disk usage in configurable formats and accounts for quotas so users can see space available to them rather than only system-wide filesystem capacity.

### 项目历史

The official homepage identifies di as a disk information utility and notes copyright from 1994 through 2021 by Brad Lanam. It emphasizes portability across heterogeneous networks and lists a large set of Unix and non-Unix systems to which di has been ported.

### 采用历史

di's official homepage documents long-term packaging and user attention: it links current package-manager availability, MacPorts and Homebrew entries for macOS, and articles ranging from a 1995 HP-UX/USR mention through later Linux magazine coverage. Version 5 added a shared library for retrieving disk-space information programmatically.

### 使用方式

The manual documents df-like reporting, file-specific filesystem lookup, selectable block and display sizes, custom output formats, CSV/tabular output, sorting, filesystem include/exclude lists, and quota-aware reporting.

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

di matters to package nerds because it is a decades-old portability play: one command that behaves consistently across many Unix variants where df output and filesystem details differ. It is the kind of small sysadmin tool that earns packages in many distributions by smoothing over platform differences.

### 时间线

- 1994: Official license notice begins Brad Lanam's copyright period for di.
- 1995: Official homepage lists HP-UX/USR article coverage.
- 2002: Official homepage lists Linux Journal coverage.
- Version 5: di adds a shared library API for disk-space information.
- 2026: Official man page generation date shows continued documentation maintenance.

### Related projects

- df is the standard command-line tool di extends and competes with.
- The SourceForge wiki documents the version 5 library API.

### 来源

- <https://diskinfo-di.sourceforge.io/>
- <https://diskinfo-di.sourceforge.io/di.html>
- <https://sourceforge.net/p/diskinfo-di/wiki/Home/>
- <https://sourceforge.net/p/diskinfo-di/code>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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

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

- Debian apt - di - 6.0.0-1+b1: normalized package name match | Debian stable package indexes: di from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | advanced df like disk information utility | https://diskinfo-di.sourceforge.io/
- Debian apt - libdi-dev - 6.0.0-1+b1: normalized package name match | Debian stable package indexes: libdi-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Header files for libdi | https://diskinfo-di.sourceforge.io/
- Debian apt - libdi6 - 6.0.0-1+b1: normalized package name match | Debian stable package indexes: libdi6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Common libraries for di | https://diskinfo-di.sourceforge.io/
- Nix - di: normalized package name match | nixpkgs package indexes: pkgs/by-name/di/di/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - di - 4.52-2: normalized package name match | Ubuntu 24.04 LTS package indexes: di from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | advanced df like disk information utility | https://diskinfo-di.sourceforge.io/
- zypper - di - 6.2.2.2-1.5: normalized package name match | openSUSE Tumbleweed package metadata: di from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Disk Information Utility | https://diskinfo-di.sourceforge.io/
- zypper - di-devel - 6.2.2.2-1.5: normalized package name match | openSUSE Tumbleweed package metadata: di-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for di | https://diskinfo-di.sourceforge.io/
- zypper - libdi6 - 6.2.2.2-1.5: normalized package name match | openSUSE Tumbleweed package metadata: libdi6 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Disk Information Utility share library | https://diskinfo-di.sourceforge.io/
- MacPorts - di: normalized package name match | MacPorts ports tree: sysutils/di/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [ncdu](https://pkg.so/zh-hans/brew/ncdu/) - Shares pkgdb curated category or tags: cli, disk-usage, storage, system.
- [baobab](https://pkg.so/zh-hans/brew/baobab/) - Shares pkgdb curated category or tags: cli, disk-usage, storage, system.
- [btdu](https://pkg.so/zh-hans/brew/btdu/) - Shares pkgdb curated category or tags: cli, disk-usage, storage, system.
- [dua-cli](https://pkg.so/zh-hans/brew/dua-cli/) - Shares pkgdb curated category or tags: cli, disk-usage, storage, system.
- [device-mapper](https://pkg.so/zh-hans/brew/device-mapper/) - Shares pkgdb curated category or tags: cli, storage, system.
- [fio](https://pkg.so/zh-hans/brew/fio/) - Shares pkgdb curated category or tags: cli, storage, system.
- [duc](https://pkg.so/zh-hans/brew/duc/) - Shares pkgdb curated category or tags: cli, disk-usage, storage, system.
- [snapraid](https://pkg.so/zh-hans/brew/snapraid/) - Shares pkgdb curated category or tags: cli, storage, system.

## Combined YAML source

View the package source record on GitHub. [combined/di.yml](https://github.com/mxcl/pkgdb/blob/main/combined/di.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
