How To Install samefile on Fedora 34

samefile is Command-line utility to find identical files on the file system

Introduction

In this tutorial we learn how to install samefile on Fedora 34.

What is samefile

The samefile utility finds files with identical contents, independent of file name. This program is for you if you are notoriously low on disk space, keep exceeding your disk quota, pay for your storage by the megabyte, run any kind of file server, need to reduce the size of your backups, or just want to get a feeling for how much redundant files are there on your system.

We can use yum or dnf to install samefile on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install samefile.

Install samefile on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install samefile using dnf by running the following command:

sudo dnf -y install samefile

Install samefile on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install samefile using yum by running the following command:

sudo yum -y install samefile

How To Uninstall samefile on Fedora 34

To uninstall only the samefile package we can use the following command:

sudo dnf remove samefile

samefile Package Contents on Fedora 34

/usr/bin/samefile
/usr/lib/.build-id
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/11152f4df06b62b8391f42cc0e49303062aec4
/usr/share/doc/samefile
/usr/share/doc/samefile/ChangeLog
/usr/share/doc/samefile/README
/usr/share/man/man1/samefile.1.gz

References

Summary

In this tutorial we learn how to install samefile on Fedora 34 using yum and dnf.