update mysql from one repository

rawandnet
rawandnet used Ask the Experts™
on
Hi Guys,

I want to upgrade mysql to a new version that is not available on redhat. when i type (yum --enablerepo=remi install mysql), still it try to download from redhat too, how can i exclude redhat.

yum --enablerepo=remi install mysql)

Installing:
 mysql-devel    i386      5.0.77-4.el5_4.2        rhel-x86_64-server-5    2.4 M
 mysql-devel    x86_64    5.1.45-1.el5.remi       remi                    115 k
Installing for dependencies:
 mysql          i386      5.0.77-4.el5_4.2        rhel-x86_64-server-5    4.8 M
 mysql          x86_64    5.1.45-1.el5.remi       remi                    1.1 M
 mysql-libs     x86_64    5.1.45-1.el5.remi       remi                    1.7 M
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
HI,

Go to "/etc/yum.repos.d" directory and edit redhat's repo file and set "enabled=0"

I hope this helps!

Author

Commented:
under that folder there is rhel-debuginfo.repo, and by difault it is disabled. (enabled=0).
the proplem is when is install example mysql, it will download and install mysql 5.0... from rhel and mysql 5.1 from remi. and don't know how to keep the remi ones? which is the new version.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial