Skip to content

Disk Prune 0.3.0

Choose a tag to compare

@saad-git-007 saad-git-007 released this 25 Sep 22:47
· 3 commits to main since this release

Disk Prune 0.3.0

New

  • Large items tab. Type a size in MB, or 2G. Every file and folder above it is shown as:

    • a mosaic
    • a size histogram
    • a "what it is" donut
    • a ranked list

    You can filter by files or folders and by name, and hide parent folders that are only big because of a sub-folder.

  • Open what it suggests. Right-click any suggestion, path, tile or row:

    • Open in Files (files are highlighted in their folder)
    • Open file
    • Copy path(s) and Copy command
    • Show in treemap

    Double-click to reveal.

Safer cleanups
These come from an adversarial safety audit and from running every cleanup against real apps.

  • Kernels: leftover module folders never include a kernel dpkg is still installing, and they are re-checked right before deletion.
  • Root deletions: a symlink-safe find -delete walk. The in-app removal is race-safe, never crosses into another filesystem, and never removes a folder containing your home.
  • apt autoremove: removes packages and keeps your config files. Flatpak uninstalls only the exact runtimes reviewed, and Docker prunes the daemon that was measured.
  • Logs: MySQL binlogs and per-host log files are never treated as rotated logs. Crash cleanup only takes apport's files.
  • Caches: pip cleans only its own folders, and odd cache environment variables are ignored.
  • node_modules: only for projects with a lockfile, never an app's bundled code or global npm installs.
  • Snaps: a disabled revision newer than the active one (after snap revert) is only a manual step.
  • Flatpak apps: running apps are detected.
  • Terminal UI: fixes for tiny terminals, cancelling a review, and restoring the terminal after a signal.

Tests

  • 111 unit tests
  • user-level cleanups executed against real apps: 328/328
  • audit reproducers: 14/14 fixed
  • functional CLI/TUI suite: 263/264; the one failure is the known limit on trees deeper than PATH_MAX
  • black-box suite: 178/178
  • live-system validator: 39/39 rules exact
wget https://github.com/saad-git-007/linux_disk_prune/releases/download/v0.3.0/linux-disk-prune_0.3.0_amd64.deb
sudo apt install ./linux-disk-prune_0.3.0_amd64.deb