← Back to team overview

ius-coredev team mailing list archive

Re: [Ius-community] correct way to use mysql55 from ius on centos 5

 

The replace plugin was designed around replacing stock packages; I haven't seen anyone try to use it in this context before.  `yum shell` works reliably on all current EL releases.

# yum shell
> erase php54-mysql
> install php54-mysqlnd
> run

EL7 also has the `yum swap` command, which lets you do transactions similar to `yum shell` in a single command.  In the future, yum will be deprecated in favor of dnf, which has a flag `--allow-erasing` built in [1].  dnf is already available in EPEL7.  yum-replace-plugin isn't actively developed anymore, and probably won't be needed in future RHEL releases.

[1] http://dnf.readthedocs.org/en/latest/cli_vs_yum.html#packages-replacement-without-yum-shell-or-yum-swap

Carl George
IUS CoreDev Team

________________________________________
From: Joe Pruett <joey@xxxxxx>
Sent: Tuesday, June 2, 2015 10:20 AM
To: Carl George
Subject: Re: [Ius-community] correct way to use mysql55 from ius on centos 5

yeah, wasn't think about the 5.3 eol. i'm willing to try the mysqlnd
interface, but:

yum replace php54-mysql --replace-with=php54-mysqlnd

doesn't actually work. it wants to update all php54 modules, and then
still errors because "php54-mysql conflicts with php54-mysqlnd".

is that something worth reporting? i'll go try a simple remove/install
instead.

On 06/02/2015 06:35 AM, Carl George wrote:
> Well for sure it won't happen with the php53u series; that branch is EOL.
>
> As far as with active PHP branches, we aren't against it, but as with all package requests we would evaluate it and decide if it makes sense.  In this case, I'm struggling to see the benefit.  You can use php54-mysql with mysql55 via the mysqlclient16 library package; we aren't aware of any incompatibilities of this setup.  It is even easier if using one of the native driver packages (php54/55u/56u-mysqlnd) [1][2], since they don't depend on libmysqlclient at all.
>
> What problem would a php*-mysql55 package solve?



References