Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install the mcrypt extension on my CentOS 6 VPS. I have done the EPEL rpm and then updated everything. Now, I keep getting this error and I've also installed php-api.

[root@vps ~]# yum -y install php-mcrypt
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates:
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.1.6-5.el5 will be installed
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt-5.1.6-5.el5.x86_64
--> Finished Dependency Resolution
Error: Package: php-mcrypt-5.1.6-5.el5.x86_64 (epel)
           Requires: php-api = 20041225
           Installed: php-common-5.3.3-23.el6_4.x86_64 (@updates)
               php-api = 20090626
           Available: php-common-5.3.3-22.el6.x86_64 (base)
               php-api = 20090626
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

AmI skipping/missing something important? Please don't down vote this.

Thank you!

share|improve this question
up vote 1 down vote accepted

You installed the wrong EPEL RPM.

You are running CentOS 6, but you installed the epel-release RPM for EPEL 5.

Remove it and install the RPM for EPEL 6.

share|improve this answer
When trying wget… then doing yum install epel-release-6-8.noarch.rpm it throws this error at me: Setting up Install Process Examining epel-release-6-8.noarch.rpm: epel-release-6-8.noarch epel-release-6-8.noarch.rpm: does not update installed package. Error: Nothing to do – Tyler James Sep 30 '13 at 7:21
You didn't remove the existing package first, as I already said. – Michael Hampton Sep 30 '13 at 7:23 – Tyler James Sep 30 '13 at 7:25
That image says nothing about whether you removed the old epel-release package. – Michael Hampton Sep 30 '13 at 7:27
Am I installing EPEL 6-8? – Tyler James Sep 30 '13 at 7:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.