Install b3sum on Ubuntu 26.04

Install b3sum on Ubuntu 26.04

The b3sum is a command-line utility which generates hashes using the BLAKE3 cryptographic hash function. Its high performance make it well suited for verifying data integrity. This tutorial explains how to install b3sum on Ubuntu 26.04.

Install b3sum

Start by downloading the latest b3sum binary from the official BLAKE3 release repository:

sudo curl -sSLo /usr/local/bin/b3sum https://github.com/BLAKE3-team/BLAKE3/releases/latest/download/b3sum_linux_x64_bin

Grant execute permissions to the binary:

sudo chmod a+x /usr/local/bin/b3sum

Check the b3sum version to determine if command is available on the system:

b3sum --version

Testing b3sum

Create a sample file for testing:

printf 'Hello world' > test.txt

Generate the BLAKE3 hash for the file:

b3sum test.txt

Expected output:

e7e6fb7d2869d109b62cdb1227208d4016cdaa0af6603d95223c6a698137d945  test.txt

Uninstall b3sum

If the b3sum is no longer needed, remove the binary from the system with the following command:

sudo rm -rf /usr/local/bin/b3sum

Leave a Comment

Cancel reply

Your email address will not be published.