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 upgrade mysql package to 5.5 on centos. (amazon image - ami-cc5af9a5)

There is 5.1 version of mysql-libs that can not be uninstalled because postfix is dependent upon it. But I can not upgrade to 5.5 version unless I uninstall this 5.1 lib version of mysql.

# rpm -qa  | grep -i mysql

# rpm -e mysql-libs-5.1.61-4.el6.x86_64
error: Failed dependencies: is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64 is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64
    mysql-libs is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64

Can someone let me know how to uprade to MySQL 5.5 without affecting the other packages? I have downloaded rpm's because yum install / upgrade does not work since it has 5.1 version built-in.

share|improve this question
up vote 4 down vote accepted

Take a look at the --nodeps option in the rpm manpage:

# rpm -e --nodeps mysql-libs
share|improve this answer

Use the remi repository to upgrade MySQL. He also installs a 5.1 compatibility package so that your other packages such as Postfix continue to work.

share|improve this answer

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.