macOS
brew install btdulocal Homebrew formula metadata
brew
Sampling disk usage profiler for btrfs. Version 0.7.2 via Homebrew; verified 2026-07-03.
install
brew install btdulocal Homebrew formula metadata
nix profile install nixpkgs#btdunixpkgs package indexes · pkgs/by-name/bt/btdu/package.nix · source: api.github.com
overview
Sampling disk usage profiler for btrfs
history
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.
security posture
No matching local secret-handling manifest was found for btdu. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
btdu | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/CyberShadow/btdu
install metadata
| Package key | brew:btdu |
|---|---|
| Version | 0.7.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/btdu |
| Homepage | https://github.com/CyberShadow/btdu |
| Repository | https://github.com/CyberShadow/btdu |
| Upstream docs | https://github.com/CyberShadow/btdu#readme |
| License | GPL-2.0-only |
| Source archive | https://github.com/CyberShadow/btdu/archive/refs/tags/v0.7.2.tar.gz |
| Last updated | 2026-07-03T15:25:04-04:00 |
| Pulse | updated |
| Dependencies | ncurses |
| Build dependencies | btrfs-progs, dub, ldc |
| Bottle | available (on arm64_linux, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | btdu |
| Version Scheme | 0 |
| Revision | 0 |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
btdu
nix profile install nixpkgs#btdusource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.