How To Install python3-tlsh on Fedora 36

In this tutorial we learn how to install python3-tlsh in Fedora 36. python3-tlsh is Python 3 interface for TLSH

Introduction

In this tutorial we learn how to install python3-tlsh on Fedora 36.

What is python3-tlsh

TLSH is a fuzzy matching library. Given a byte stream with a minimum length of 256 bytes (and a minimum amount of randomness), TLSH generates a hash value which can be used for similarity comparisons. Similar objects will have similar hash values which allows for the detection of similar objects by comparing their hash values. This package contains the Python 3 interface for TLSH.

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

Install python3-tlsh on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python3-tlsh

Install python3-tlsh on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-tlsh using yum by running the following command:

sudo yum -y install python3-tlsh

How To Uninstall python3-tlsh on Fedora 36

To uninstall only the python3-tlsh package we can use the following command:

sudo dnf remove python3-tlsh

python3-tlsh Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/0351000a7d3da2c0f4fbf30af6dc9154487fda
/usr/lib64/python3.10/site-packages/tlsh-4.5.0-py3.10.egg-info
/usr/lib64/python3.10/site-packages/tlsh.cpython-310-x86_64-linux-gnu.so
/usr/share/doc/tlsh
/usr/share/doc/tlsh/README.md
/usr/share/licenses/tlsh
/usr/share/licenses/tlsh/LICENSE
/usr/share/licenses/tlsh/NOTICE.txt

References

Summary

In this tutorial we learn how to install python3-tlsh on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).