How To Install libxcrypt on Fedora 36

In this tutorial we learn how to install libxcrypt in Fedora 36. libxcrypt is Extended crypt library for descrypt, md5crypt, bcrypt, and others

Introduction

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

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.

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

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

sudo dnf -y install libxcrypt

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

sudo yum -y install libxcrypt

How To Uninstall libxcrypt on Fedora 36

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

sudo dnf remove libxcrypt

libxcrypt Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/99
/usr/lib/.build-id/99/24d3a82ca8fa6b94bc574a6520bcf84ccf831f
/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 36 using yum and [dnf]((/fedora/36/dnf/).