LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

duperemove

filesystem extent deduplication tool

TLDR

Search for duplicate extents
$ duperemove -r [path/to/directory]
copy
Deduplicate on Btrfs or XFS
$ duperemove -r -d [path/to/directory]
copy
Use hash file for persistence
$ duperemove -r -d --hashfile=[path/to/hashfile] [path/to/directory]
copy
Limit threads
$ duperemove -r -d --hashfile=[path/to/hashfile] --io-threads=[n] --cpu-threads=[n] [path/to/directory]
copy

SYNOPSIS

duperemove [options] paths...

DESCRIPTION

duperemove finds duplicate filesystem extents and optionally schedules them for deduplication. On filesystems like Btrfs and XFS, identical data blocks can be shared between files, saving disk space.An extent is a contiguous area of storage allocated for a file.

PARAMETERS

-r

Recursively process directories
-d
Deduplicate (schedule duplicates for dedup)
--hashfile file
Store hashes in file for reuse
--io-threads n
I/O thread count
--cpu-threads n
CPU thread count for hash comparison
-h
Print human-readable sizes
-v
Verbose output
--dedupe-options=OPTIONS
Comma-separated dedupe options (e.g., partial, same)
-b SIZE
Block size for hashing (default: 128K)

INSTALL

sudo apt install duperemove
copy
sudo dnf install duperemove
copy
sudo pacman -S duperemove
copy
sudo apk add duperemove
copy
sudo zypper install duperemove
copy
nix profile install nixpkgs#duperemove
copy

CAVEATS

Only works on filesystems supporting extent-level deduplication (Btrfs, XFS). Deduplication is handled by the kernel via the `FIDEDUPERANGE` ioctl. Using a hashfile is strongly recommended for large datasets as it reduces memory usage and enables incremental scans across runs. Without `-d`, the tool only reports duplicates without deduplicating. Read-only files can still be deduplicated since dedup operates at the filesystem level.

SEE ALSO

btrfs(8), fdupes(1), rmlint(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid