Disk Usage Analyzer, dua is a tool to conveniently learn about the usage of disk
space of a given directory. It's parallel by default and will max out your SSD,
providing relevant information as fast as possible. Optionally delete
superfluous data, and do so more quickly than rm.
cd /usr/pkgsrc/sysutils/dua-cli && make install clean
Dependencies
No port depends on this one.
Commit history 11
Date
Commit
Credits
Log message
2590d353ac
pin
sysutils/dua-cli: update to 2.46.0
A bugfix release, and one that should also restore cargo installations, making them function.
New Features
make walk result buffering configurable per worker
Replace the fixed QUEUED_BATCHES_PER_WORKER constant with
Options::queued_batches_per_worker and a chainable builder method. Use
two queued batches per worker by default in both production and tests,
preserving the original bounded buffering behavior.
Consumers that pause to process entries can opt into a larger queue to
keep traversal workers busy, trading memory for less idle time. A value
of zero selects an unbuffered channel. Check the worker-count
multiplication so excessive capacities cannot silently overflow.
Update existing Options literals to inherit the new default. Verify the
…
0106f8decf
pin
sysutils/dua-cli: update to 2.45.1
Documentation
correct platform defaults in threads help
Bug Fixes
don't fail on sole directory inputs beyond MAX_PATH on Windows
A sole directory input is changed into so its entries can be listed and
reported relative to it, but set_current_dir enforces MAX_PATH on
Windows (os error 206) even though the directory itself can still be
traversed through verbatim paths.
When the change fails, expand the directory into absolute input paths
directly instead of aborting, which makes a single long directory input
work in list, aggregate, stacks and interactive modes alike. Reported
paths are absolute then, consistent with how multiple inputs are already
displayed.
The expanded root is returned to callers so the interactive mode still
…
a67bc74882
pin
sysutils/dua-cli: updatet to 2.45.0
This release packs an incredibly useful new sub-command called dua clean [--depth N],
to automatically and efficiently find typical build products that you may want to delete,
for Rust and Zig and Node for now.
Also, when deleting entries, the TUI does not block anymore, but shows the decreasing number
of bytes as files are deleted, until the marked entry finally disappers. The TUI can still be
used then, albeit in read-only mode.
Oh, and it also got faster on macOS when there are folders with a lot of files, when it will
switch aways from bulk-reads to multi-threaded stat calls instead, which in my case led to
a 2.5x speedup.
New Features
add Git-aware dua clean and background deletion
This commit was mostly rubber-stamped, but tested for a week or so before that.
…
552375ff86
pin
sysutils/dua-cli: update to 2.44.0
2.44.0 (2026-08-30)
This is a massive release that cost my weekend and was motivated by the chance to reduce the amount of open issues to 0. Besides the memory usage being cut in half, one can now keep snapshots of interactive runs, and compare them to older snapshots, or simply view them again with different settings. Finally, it's now possible to configure keyboarding as well. What follows is the more elaborate, generated version of this text, and not my speech.
This release turns traversal results into durable artifacts, shows exactly where disk usage moved, puts every interactive key under user control, and makes large traversals substantially leaner.
dua interactive --export before.dua
# ... later ...
dua interactive --export after.dua
dua diff before.dua after.dua
…
46724b80d0
pin
sysutils/dua-cli: update to 2.43.0
Thanks to our contributors, there are not one, but two (a joke, a human is writing this with fleshy fingers :D) headline features:
1. dua aggregate --depth N shows an indented tree-like view, instead of a flat list
2. dua aggregate --stack | inferno-flamegraph > fire.svg outputs a flame-graph compatible stack listing, for pretty visualisations of the directory. It also works with --depth N.
On the side, on macOS, the bytes output of dua now matches du byte-perfectly, and for the first time it's possible to pipe dua
output into a file without terminal escape sequences (why did this take me so long again?).
New Features
Add dua aggregate --depth N for indented tree output
Bug Fixes
don't output colors when stdout isn't a terminal.
…
The latest 5 of 11 in the history this site was built from.
This site uses Google Analytics cookies to count visits and see which pages are read.
No cookie is set until you accept. What is collected