How To Install mcrypt on Fedora 36

In this tutorial we learn how to install mcrypt in Fedora 36. mcrypt is Replacement for crypt()

Introduction

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

What is mcrypt

MCrypt is a replacement for the old crypt() package and crypt(1) command, with extensions. It allows developers to use a wide range of encryption functions, without making drastic changes to their code. It allows users to encrypt files or data streams without having to be cryptographers.

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

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

sudo dnf -y install mcrypt

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

sudo yum -y install mcrypt

How To Uninstall mcrypt on Fedora 36

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

sudo dnf remove mcrypt

mcrypt Package Contents on Fedora 36

/usr/bin/mcrypt
/usr/bin/mdecrypt
/usr/lib/.build-id
/usr/lib/.build-id/82
/usr/lib/.build-id/82/e91cc2e1b0856adec98c50b15584819380a5ca
/usr/share/doc/mcrypt
/usr/share/doc/mcrypt/AUTHORS
/usr/share/doc/mcrypt/COPYING
/usr/share/doc/mcrypt/ChangeLog
/usr/share/doc/mcrypt/NEWS
/usr/share/doc/mcrypt/README
/usr/share/doc/mcrypt/THANKS
/usr/share/doc/mcrypt/TODO
/usr/share/locale/cs/LC_MESSAGES/mcrypt.mo
/usr/share/locale/de/LC_MESSAGES/mcrypt.mo
/usr/share/locale/el/LC_MESSAGES/mcrypt.mo
/usr/share/locale/es_AR/LC_MESSAGES/mcrypt.mo
/usr/share/locale/pl/LC_MESSAGES/mcrypt.mo
/usr/share/man/man1/mcrypt.1.gz

References

Summary

In this tutorial we learn how to install mcrypt on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).