How To Install jdupes on Debian 9
Introduction
In this tutorial we learn how to install jdupes
on Debian 9.
What is jdupes
jdupes is:
jdupes is a program based in fdupes. The main goal of jdupes is identify and taking actions upon duplicate files. In comparison with fdupes, jdupes is heavily modified from and improved.
The biggest reason to use jdupes is raw speed. In testing on various data sets, jdupes is over 7 times faster than fdupes-1.51 on average.
Code in jdupes is written with data loss avoidance as the highest priority. If a choice must be made between being aggressive or careful, the careful way is always chosen.
jdupes includes features that are not found in fdupes. Examples of such features include btrfs block-level deduplication and control over which file is kept when a match set is automatically deleted. jdupes is not afraid of dropping features of low value; a prime example is the -1 switch which outputs all matches in a set on one line, a feature which was found to be useless in real-world tests and therefore thrown out.
jdupes can convert duplicate files in hardlinks or relative softlinks. It is useful in several scenarios, as in Debian packaging, to create relative symlinks to lots of duplicate files (it will substitute rdfind + symlinks commands, used to same purpose, when solving lintian duplicate-files).
Packages build for Linux versions have support to btrfs filesystem.
There are three methods to install jdupes
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install jdupes Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install jdupes
using apt-get
by running the following command:
sudo apt-get -y install jdupes
Install jdupes Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install jdupes
using apt
by running the following command:
sudo apt -y install jdupes
Install jdupes Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install jdupes
using aptitude
by running the following command:
sudo aptitude -y install jdupes
How To Uninstall jdupes on Debian 9
To uninstall only the jdupes
package we can use the following command:
sudo apt-get remove jdupes
Uninstall jdupes And Its Dependencies
To uninstall jdupes
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove jdupes
Remove jdupes Configurations and Data
To remove jdupes
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge jdupes
Remove jdupes configuration, data, and all of its dependencies
We can use the following command to remove jdupes
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge jdupes
Dependencies
jdupes have the following dependencies:
References
Summary
In this tutorial we learn how to install jdupes
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.