No package php-mcrypt

No package php-mcrypt

Now this is insane. Since many years, I am looking at this error ‘No package php-mcrypt available’. CentOS still doesn’t has mcrypt by default in its repositories. I can imagine why, but don’t want to fall in discussion.

Let’s fix this from EPEL repos. Along with direct copy-paste codes, I am also providing a method which will stay applicable regardless of updates and version number of files.

First go to this address and select folder depending on version of your CentOS installation. E.g. ‘6’ for CentOS 6.x.x

Now, select path as per system architecture. ‘i386’ folder for 32bit and ‘x86_64’ for 64bit.

Find the file similar to something like ‘epel-release-x-x.noarch.rpm’. Copy the filename by selecting it. Take a note of version number.

Now, look at address bar of your internet browser. Copy the address from browser and paste it in SSH after putting ‘rpm -ivh’. Suffix the whole line with ‘epel-release’ filename, so the code will look like as below.

For 32bit:

rpm -ivh

For 64bit:

rpm -ivh

After executing above command, do an update.

yum update

You will see that EPEL repo is also listed in the update database list.

Now, try to install the php-mcrypt again by,

yum install php-mcrypt

You will need to answer ‘Y’ for the questions to proceed with the installation.

Done. Let me know of any issue you face.

By Mrinal Buddekar

Data Manager and a technology enthusiast! Mrinal Buddekar is Pune based blogger who loves building server, websites, technology, and affiliate blogging.

Hey there!

Help us reach out to awesome people lie you out there. We publish Tech and WordPress, Deals, and Reviews. WE DON'T SPAM!

Your Information will never be shared with any third party