Duperemove

Duperemove is a btrfs tool for finding duplicated extents and submitting them to the kernel for deduplication. This article will focus on building and using the utility from the newest ('live') source code directly out of the git repository. An ebuild is in the main Gentoo repository. Those who would like to quickly install an older version can simply the package.

Prerequisites
Duperemove needs a kernel version equal to or greater than 3.13.

Install the following build time dependencies:

Compile and install
Compile the source using the command:

At this point the utility can be ran from the current directory or it can be installed to typical locations on the operating system. To install use the make install command as root:

Usage
Detailed information can be seen by running.