# btdu を Homebrew, Nix でインストール

btdu のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:btdu
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install btdu
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#btdu
```

  証拠: nixpkgs package indexes: pkgs/by-name/bt/btdu/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:btdu
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/btdu>
- **バージョン:** 0.7.2
- **ソース概要:** Sampling disk usage profiler for btrfs
- **ホームページ:** <https://github.com/CyberShadow/btdu>
- **リポジトリ:** <https://github.com/CyberShadow/btdu>
- **上流ドキュメント:** <https://github.com/CyberShadow/btdu#readme>
- **ライセンス:** GPL-2.0-only
- **ソースアーカイブ:** <https://github.com/CyberShadow/btdu/archive/refs/tags/v0.7.2.tar.gz>
- **最終更新:** 2026-07-03T15:25:04-04:00
- **生成日時:** 2026-07-08T18:08:21+00:00

## 実行可能ファイル

- btdu (cli)
- btdu (エイリアス)

## 依存関係

- ncurses

## ビルド依存関係

- btrfs-progs
- dub
- ldc

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-07-08
- マネージャ版: 0.7.2
- マネージャ更新日: 2026-07-03
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/CyberShadow/btdu
- 検出された最新: v0.7.2 (最新)
## プロジェクトの歴史と使われ方

btdu is a sampling disk-usage profiler for btrfs. It exists because copy-on-write snapshots, reflinks, extent sharing, and compression make classic directory walkers like du and ncdu poor explanations of real btrfs space usage.

### プロジェクトの歴史

CyberShadow started btdu in November 2020, with the first public release tag v0.1.0 shortly afterward. The project is written for the btrfs filesystem and uses sampling over filesystem space rather than a conventional recursive directory traversal.

The README explains that btdu samples random points in the disk space, asks btrfs what is stored there, records a representative path, and repeats indefinitely. The result is initially approximate but becomes progressively more accurate as sampling continues.

### 採用の歴史

btdu has a narrower audience than general disk analyzers, but the README documents several distribution paths: native distro packages where available, static binaries from GitHub releases, latest CI builds, Nix flakes, and source builds using the D compiler and Dub.

The Homebrew and Nix packaging in the input reflects that btrfs users often still want btdu available from cross-platform package managers even though its runtime target is btrfs rather than generic macOS storage.

### 使われ方

Users run btdu with root privileges against the top-level subvolume of a btrfs filesystem. It can launch an interactive terminal UI, run headless for scripts, export and import sampling results, compare baselines, and use expert or physical-space modes for deeper analysis.

### パッケージ好きにとっての重要性

btdu is significant because it packages filesystem theory into a small terminal tool. It is not another ncdu clone; it is a btrfs-specific answer to shared extents, compression, snapshots, unreachable extent fragments, and logical-versus-physical allocation.

### タイムライン

- 2020: First git commit and v0.1.0 release.
- 2025: v0.6.0 release appears in git history.
- 2026: v0.7.2 release appears in git history.

### Related projects

- The README contrasts btdu with ncdu for classic disk-usage analysis.
- The README links compsize as a special-purpose btrfs compression-space tool.
- The README names btsdu, the Btrfs Snapshot Disk Usage Analyzer, in its See Also section.

### ソース

- Local git history from https://github.com/CyberShadow/btdu shows first commit in 2020 and release tags v0.1.0, v0.6.0, and v0.7.2.
- Official CONCEPTS.md explains logical versus physical space and btdu size metrics: https://raw.githubusercontent.com/CyberShadow/btdu/master/CONCEPTS.md
- Official README describes btdu as a sampling disk usage profiler for btrfs and explains the random sampling algorithm: https://raw.githubusercontent.com/CyberShadow/btdu/master/README.md
- Official README documents use cases, install paths, root/top-level-subvolume usage, headless mode, import/export, compare mode, and See Also: https://raw.githubusercontent.com/CyberShadow/btdu/master/README.md


## セキュリティノート

btdu に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


## ソースデータベース詳細

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

## 他のパッケージマネージャ記録

- Nix - btdu: normalized package name match | nixpkgs package indexes: pkgs/by-name/bt/btdu/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://www.automicvault.com/ja/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Networking and protocol packages](https://www.automicvault.com/ja/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/ja/pkg/brew-utility-packages/) - Matched curated package taxonomy and local package facts.
- [ncurses](https://www.automicvault.com/ja/pkg/brew/ncurses/) - Runtime dependency declared by Homebrew.
- [btrfs-progs](https://www.automicvault.com/ja/pkg/brew/btrfs-progs/) - Build dependency declared by Homebrew.
- [dub](https://www.automicvault.com/ja/pkg/brew/dub/) - Build dependency declared by Homebrew.
- [ldc](https://www.automicvault.com/ja/pkg/brew/ldc/) - Build dependency declared by Homebrew.
- [apachetop](https://www.automicvault.com/ja/pkg/brew/apachetop/) - Local package facts share a topical domain. Shared terms: ncurses.
- [center-im](https://www.automicvault.com/ja/pkg/brew/center-im/) - Local package facts share a topical domain. Shared terms: ncurses.
- [dump1090-fa](https://www.automicvault.com/ja/pkg/brew/dump1090-fa/) - Local package facts share a topical domain. Shared terms: ncurses.

## Combined YAML source

View the package source record on GitHub. [combined/btdu.yml](https://github.com/automic-vault/db/blob/main/combined/btdu.yml)


## ソース

- Nucleus package database
- package-page enrichment
- curated package history
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
