How To Install duperemove on CentOS 8
Introduction
In this tutorial we learn how to install duperemove
on CentOS 8.
What is duperemove
Duperemove is a simple tool for finding duplicated extents and submitting them for deduplication. When given a list of files it will hash their contents on a block by block basis and compare those hashes to each other, finding and categorizing extents that match each other. When given the -d option, duperemove will submit those extents for deduplication using the btrfs-extent-same ioctl.
We can use yum
or dnf
to install duperemove
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install duperemove.
Install duperemove on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install duperemove
using dnf
by running the following command:
sudo dnf -y install duperemove
Install duperemove on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install duperemove
using yum
by running the following command:
sudo yum -y install duperemove
How To Uninstall duperemove on CentOS 8
To uninstall only the duperemove
package we can use the following command:
sudo dnf remove duperemove
duperemove Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/62
/usr/lib/.build-id/62/ed8a540b08fa8a0c4c6c0f57fe8335ee91c7ef
/usr/lib/.build-id/67
/usr/lib/.build-id/67/08a4852001b7e9ea839d4632c9f849c64789d2
/usr/lib/.build-id/69
/usr/lib/.build-id/69/835fddde669011a1353705cb3a2e1a1aa9699d
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/41ad7983a69e09341fb07a64a19ab1389b9236
/usr/sbin/btrfs-extent-same
/usr/sbin/duperemove
/usr/sbin/hashstats
/usr/sbin/show-shared-extents
/usr/share/doc/duperemove
/usr/share/doc/duperemove/README.md
/usr/share/licenses/duperemove
/usr/share/licenses/duperemove/LICENSE
/usr/share/man/man8/btrfs-extent-same.8.gz
/usr/share/man/man8/duperemove.8.gz
/usr/share/man/man8/hashstats.8.gz
/usr/share/man/man8/show-shared-extents.8.gz
References
Summary
In this tutorial we learn how to install duperemove
on CentOS 8 using yum and dnf.