Install xxHash on Ubuntu 24.04

Install xxHash on Ubuntu 24.04

xxHash is a fast, non-cryptographic hash function useful for calculating file checksums. It is known for its notable speed and efficiency, making it ideal for data integrity verification.

This tutorial shows how to install xxHash on Ubuntu 24.04.

Install xxHash

Before installing, update the package lists to ensure you get the latest available version:

sudo apt update

Install xxHash:

sudo apt install -y xxhash

Check if xxHash is installed correctly by verifying its version:

xxhsum --version

Testing xxHash

Create a test file:

printf 'Hello world' > test.txt

Compute hash of file:

xxhsum test.txt

Expected output:

c500b0c912b376d8  test.txt

Uninstall xxHash

If you no longer need xxHash, remove it using:

sudo apt purge --autoremove -y xxhash

Leave a Comment

Cancel reply

Your email address will not be published.