Automic VaultAutomic Vault

brew

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

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

インストール

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

macOS

Homebrew確認済み · 100%
brew install btdu

local Homebrew formula metadata

Linux

Nix確認済み · 92%
nix profile install nixpkgs#btdu

nixpkgs package indexes · pkgs/by-name/bt/btdu/package.nix · ソース: api.github.com

概要

パッケージ概要

Sampling disk usage profiler for btrfs

コマンドとエイリアス

  • btdu

履歴

プロジェクトの歴史と使われ方

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 パッケージメタデータはここに公開されています。

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 2 個のプラットフォームターゲットで利用できます。
  • 1 件の実行時依存関係とともにインストールされます。
  • ビルドメタデータには 3 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
btducliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-08
マネージャ版0.7.2
マネージャ更新日2026-07-03
ローカルデータOK
上流最新
検出された最新v0.7.2

https://github.com/CyberShadow/btdu

  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:btdu
バージョン0.7.2
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/btdu
ホームページ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
Pulseupdated
依存関係ncurses
ビルド依存関係btrfs-progs, dub, ldc
Bottle利用可能 (対象 arm64_linux, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namebtdu
Version Scheme0
Revision0
Requirements
  • linux
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

ソースデータベース一致

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

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Nix95%

btdu

nix profile install nixpkgs#btdu
  • normalized package name match
  • 一致条件: Btdu
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/bt/btdu/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

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