Ask Your Question

How to replace mysql-libs comes with Centos

asked 2015-06-22 03:29:00 -0600

TimmyC gravatar image

Hi, I need to uninstall mysql-libs-5.1.73 because it is conflicted with mysql55-libs that I want to install.

package { 'mysql-libs-5.1.73': 
    ensure => absent,

This gives me error:

Error: Execution of '/bin/rpm -e mysql-libs-5.1.73-3.el6_5.x86_64' returned 1: error: Failed dependencies: is needed by (installed) postfix-2:2.6.6-6.el6_5.x86_64

I tried this, still doesn't work.

package { 'mysql-libs-5.1.73': 
    provider => yum,
    ensure => absent,
    uninstall_options => '--nodeps',

What is best way to solve this problem?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-06-23 09:44:04 -0600

ramindk gravatar image

You need to install the shared-compat package. That'll provide a version of the libmysql your distro expects. Works the same if you're running the latest RPMs from Mysql as well. Once it's installed you can install later versions of mysql-libs.

edit flag offensive delete link more


After installed shared-compat RPM from MySQL, I can now uninstall mysql-libs-5.1.73 fine - Thanks. But when I am trying to install MySQL55 from iUS repo, it says: conflict with shared-compat... which is why I wanted to remove mysql-libs-5.1.73 in the first place. Any suggestions?

TimmyC gravatar imageTimmyC ( 2015-06-24 02:24:01 -0600 )edit

Using Percona or Mysql RPMs you'd find the matching shared-compat package that matches the version you want to install. It appears that IUS doesn't generate that package. Try installing their mysqlclient16 lib first. However at this point you have a package issue, not a Puppet problem.

ramindk gravatar imageramindk ( 2015-06-24 09:51:15 -0600 )edit

answered 2015-06-22 23:48:37 -0600

Anwar gravatar image

Try this :

exec { "rpm -e --force mysql-libs-5.1.73  ":
  path    => ["/usr/bin", "/usr/sbin"]
edit flag offensive delete link more


do not do this. There is no reason and it may break software running on the machine. The Mysql shared-compat package exists for a reason.

ramindk gravatar imageramindk ( 2015-06-23 09:44:44 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-06-22 03:29:00 -0600

Seen: 1,179 times

Last updated: Jun 23 '15