Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
mysql-libs-5.1.61-4.el6.x86_64

# rpm -e mysql-libs-5.1.61-4.el6.x86_64
error: Failed dependencies:
    libmysqlclient.so.16()(64bit) is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64
    libmysqlclient.so.16(libmysqlclient_16)(64bit) 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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.