How To Install mcrypt on Fedora 34
Introduction
In this tutorial we learn how to install mcrypt
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install mcrypt.
Install mcrypt 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 mcrypt
using dnf
by running the following command:
sudo dnf -y install mcrypt
Install mcrypt 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 mcrypt
using yum
by running the following command:
sudo yum -y install mcrypt
How To Uninstall mcrypt on Fedora 34
To uninstall only the mcrypt
package we can use the following command:
sudo dnf remove mcrypt
mcrypt Package Contents on Fedora 34
/usr/bin/mcrypt
/usr/bin/mdecrypt
/usr/lib/.build-id
/usr/lib/.build-id/af
/usr/lib/.build-id/af/55531dbc60febc53d30d0525d5dc9f8d7009e2
/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 34 using yum and dnf.