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:
    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.

2 Answers 2


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

# rpm -e --nodeps mysql-libs

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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