How To Install sha2 on Fedora 34
Introduction
In this tutorial we learn how to install sha2
on Fedora 34.
What is sha2
The library implements the SHA-256, SHA-384, and SHA-512 hash algorithms. The interface is similar to the interface to SHA-1 found in the OpenSSL library. sha2 is a simple program that accepts input from either STDIN or reads one or more files specified on the command line, and then generates the specified hash (either SHA-256, SHA-384, SHA-512, or any combination thereof, including all three at once). sha2 1.0.1 19.fc34 x86_64 29 k sha2-1.0.1-19.fc34.src.rpm fedora SHA Implementation Library http BSD The library implements the SHA-256, SHA-384, and SHA-512 hash algorithms. The interface is similar to the interface to SHA-1 found in the OpenSSL library. sha2 is a simple program that accepts input from either STDIN or reads one or more files specified on the command line, and then generates the specified hash (either SHA-256, SHA-384, SHA-512, or any combination thereof, including all three at once).
We can use yum
or dnf
to install sha2
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install sha2.
Install sha2 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 sha2
using dnf
by running the following command:
sudo dnf -y install sha2
Install sha2 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 sha2
using yum
by running the following command:
sudo yum -y install sha2
How To Uninstall sha2 on Fedora 34
To uninstall only the sha2
package we can use the following command:
sudo dnf remove sha2
sha2 Package Contents on Fedora 34
/usr/bin/sha2
/usr/bin/sha2speed
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/522973afed30bab715dce4766e53b0dfdcf360
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/3884875c459679838d6c2c0a9d4e35366112af
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/6baf893d79e61d43314f45298e3679596b3b26
/usr/lib/libsha2.so.1
/usr/lib/libsha2.so.1.0.1
/usr/share/doc/sha2
/usr/share/doc/sha2/README
/usr/bin/sha2
/usr/bin/sha2speed
/usr/lib/.build-id
/usr/lib/.build-id/51
/usr/lib/.build-id/51/887771aedd31a8c9ea8d793adad1a85fce59a8
/usr/lib/.build-id/96
/usr/lib/.build-id/96/f49061f0519c94035be1cecac28feec27dc9ed
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/c67cd72e05a56fd522f2c500b2dfe5a070671e
/usr/lib64/libsha2.so.1
/usr/lib64/libsha2.so.1.0.1
/usr/share/doc/sha2
/usr/share/doc/sha2/README
References
- [sha2 website](http://www.aarongifford.com/computers/sha.html http://www.aarongifford.com/computers/sha.html)
Summary
In this tutorial we learn how to install sha2
on Fedora 34 using yum and dnf.