RE: Yum repo, mysql and php problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you Eric.

Worked.

Marius

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx]
On Behalf Of Eric Sisler
Sent: 12 February 2009 15:38
To: General Red Hat Linux discussion list
Subject: Re: Yum repo, mysql and php problem

Marius Boitor <boitor.marius@xxxxxxxxx> wrote:

Hi,
>
> a small issue with repositories. I needed php-devel package and because
the
> default redhat repo didn't had what I needed I installed the package with
> --enablerepo=remi option. Yum installed me also a new version of
> mysql-server.
>
> The problem:
>
> yum is showing different versions of mysql-server like this:
>
> -------------------------
>
> #yum install mysql-server mysql
>
> Loaded plugins: rhnplugin
>
> Setting up Install Process
>
> Parsing package install arguments
>
> Package matching mysql-server-5.0.45-7.el5.i386 already installed.
Checking
> for update.
>
> Package matching mysql-5.0.45-7.el5.i386 already installed. Checking for
> update.
>
> Nothing to do


I have a similar setup on a CentOS box.  In my case I'm using the centosplus
repository as I needed newer versions of MySQL & PHP.  The main CentOS repo
config file '/etc/yum.repos.d/CentOS-Base.repo' has an entry for the
centosplus repository & lists specific packages that should be included.
Here's the relevant lines:

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
enabled=1
priority=2
protect=1
includepkgs=php* mysql*

The repo is enabled so I don't have to keep using the '--enablerepo=' switch
when running yum.  More importantly the "includepkgs=" line includes only
those packages I want from the centosplus repository.  Those same packages
are excluded from the base entry:

[base]
priority=1
protect=1
exclude=php* mysql*

You'll have to adjust the repo name / config & desired packages for your
setup, but see if this doesn't help.

-Eric
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux