# 使用 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
- **版本:** 6.2.2.2
- **来源摘要:** Advanced df-like disk information utility
- **主页:** <https://diskinfo-di.sourceforge.io/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- di (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


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