How To Install libxcrypt on Fedora 34

libxcrypt is Extended crypt library for descrypt, md5crypt, bcrypt, and others Extended crypt library for descrypt, md5crypt, bcrypt, and others

Introduction

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

What is libxcrypt

libxcrypt is a modern library for one-way hashing of passwords. It supports a wide variety of both modern and historical hashing methods yescrypt, gost-yescrypt, scrypt, bcrypt, sha512crypt, sha256crypt, md5crypt, SunMD5, sha1crypt, NT, bsdicrypt, bigcrypt, and descrypt. It provides the traditional Unix crypt and crypt_r interfaces, as well as a set of extended interfaces pioneered by Openwall Linux, crypt_rn, crypt_ra, crypt_gensalt, crypt_gensalt_rn, and crypt_gensalt_ra. libxcrypt is intended to be used by login(1), passwd(1), and other similar programs; that is, to hash a small number of passwords during an interactive authentication dialogue with a human. It is not suitable for use in bulk password-cracking applications, or in any other situation where speed is more important than careful handling of sensitive data. However, it is intended to be fast and lightweight enough for use in servers that must field thousands of login attempts per minute. This version of the library does not provide the legacy API functions that have been provided by glibc’s libcrypt.so.1. libxcrypt 4.4.23 1.fc34 i686 122 k libxcrypt-4.4.23-1.fc34.src.rpm updates Extended crypt library for descrypt, md5crypt, bcrypt, and others https LGPLv2+ and BSD and Public Domain libxcrypt is a modern library for one-way hashing of passwords. It supports a wide variety of both modern and historical hashing methods yescrypt, gost-yescrypt, scrypt, bcrypt, sha512crypt, sha256crypt, md5crypt, SunMD5, sha1crypt, NT, bsdicrypt, bigcrypt, and descrypt. It provides the traditional Unix crypt and crypt_r interfaces, as well as a set of extended interfaces pioneered by Openwall Linux, crypt_rn, crypt_ra, crypt_gensalt, crypt_gensalt_rn, and crypt_gensalt_ra. libxcrypt is intended to be used by login(1), passwd(1), and other similar programs; that is, to hash a small number of passwords during an interactive authentication dialogue with a human. It is not suitable for use in bulk password-cracking applications, or in any other situation where speed is more important than careful handling of sensitive data. However, it is intended to be fast and lightweight enough for use in servers that must field thousands of login attempts per minute. This version of the library does not provide the legacy API functions that have been provided by glibc’s libcrypt.so.1.

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

Install libxcrypt 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 libxcrypt using dnf by running the following command:

sudo dnf -y install libxcrypt

Install libxcrypt 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 libxcrypt using yum by running the following command:

sudo yum -y install libxcrypt

How To Uninstall libxcrypt on Fedora 34

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

sudo dnf remove libxcrypt

libxcrypt Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/68
/usr/lib/.build-id/68/bc5f90afb834695787107a60d2c83dad678ae9
/usr/lib/fipscheck
/usr/lib/fipscheck/libcrypt.so.2.0.0.hmac
/usr/lib/fipscheck/libcrypt.so.2.hmac
/usr/lib/libcrypt.so.2
/usr/lib/libcrypt.so.2.0.0
/usr/share/doc/libxcrypt
/usr/share/doc/libxcrypt/NEWS
/usr/share/doc/libxcrypt/README
/usr/share/doc/libxcrypt/README.fedora
/usr/share/doc/libxcrypt/THANKS
/usr/share/licenses/libxcrypt
/usr/share/licenses/libxcrypt/AUTHORS
/usr/share/licenses/libxcrypt/COPYING.LIB
/usr/share/licenses/libxcrypt/LICENSING
/usr/share/man/man5/crypt.5.gz
/usr/lib/.build-id
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/468f85f8331de2e61cbbbf2b78150a62932864
/usr/lib/fipscheck
/usr/lib/fipscheck/libcrypt.so.2.0.0.hmac
/usr/lib/fipscheck/libcrypt.so.2.hmac
/usr/lib/libcrypt.so.2
/usr/lib/libcrypt.so.2.0.0
/usr/share/doc/libxcrypt
/usr/share/doc/libxcrypt/NEWS
/usr/share/doc/libxcrypt/README
/usr/share/doc/libxcrypt/README.fedora
/usr/share/doc/libxcrypt/THANKS
/usr/share/licenses/libxcrypt
/usr/share/licenses/libxcrypt/AUTHORS
/usr/share/licenses/libxcrypt/COPYING.LIB
/usr/share/licenses/libxcrypt/LICENSING
/usr/share/man/man5/crypt.5.gz
/usr/lib/.build-id
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/5706dc734824945067930d37c4744dbdfa4bd2
/usr/lib64/fipscheck
/usr/lib64/fipscheck/libcrypt.so.2.0.0.hmac
/usr/lib64/fipscheck/libcrypt.so.2.hmac
/usr/lib64/libcrypt.so.2
/usr/lib64/libcrypt.so.2.0.0
/usr/share/doc/libxcrypt
/usr/share/doc/libxcrypt/NEWS
/usr/share/doc/libxcrypt/README
/usr/share/doc/libxcrypt/README.fedora
/usr/share/doc/libxcrypt/THANKS
/usr/share/licenses/libxcrypt
/usr/share/licenses/libxcrypt/AUTHORS
/usr/share/licenses/libxcrypt/COPYING.LIB
/usr/share/licenses/libxcrypt/LICENSING
/usr/share/man/man5/crypt.5.gz
/usr/lib/.build-id
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/b58cc94855ffb6aa1699d10f827440e3b4b0ad
/usr/lib64/fipscheck
/usr/lib64/fipscheck/libcrypt.so.2.0.0.hmac
/usr/lib64/fipscheck/libcrypt.so.2.hmac
/usr/lib64/libcrypt.so.2
/usr/lib64/libcrypt.so.2.0.0
/usr/share/doc/libxcrypt
/usr/share/doc/libxcrypt/NEWS
/usr/share/doc/libxcrypt/README
/usr/share/doc/libxcrypt/README.fedora
/usr/share/doc/libxcrypt/THANKS
/usr/share/licenses/libxcrypt
/usr/share/licenses/libxcrypt/AUTHORS
/usr/share/licenses/libxcrypt/COPYING.LIB
/usr/share/licenses/libxcrypt/LICENSING
/usr/share/man/man5/crypt.5.gz

References

Summary

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