Add epel and remi repo to CentOS 5/6

By default remi repo is not enabled. In remi repo can be found a newer version of MySQL.

## Remi Dependency on CentOS 6 and Red Hat (RHEL) 6 ## 

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

## CentOS 6 and Red Hat (RHEL) 6 ## (this repo is not enabled by default, check /etc/yum.repo.d/remi.repo file)

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

## Remi Dependency on CentOS 5 and Red Hat (RHEL) 5 ##

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm 

## CentOS 5 and Red Hat (RHEL) 5 ##

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

## CentOS x64 RPMforge install

rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

 

To search in one repo for rpm version:

yum --enablerepo=remi info mysql 

To install a package from a repo:

yum --enablerepo=remi install mysql mysql-server 

For CentALT

vim /etc/yum.repos.d/centalt.repo 
[CentALT] 
 name=CentALT Packages for Enterprise Linux 6 - $basearch
 #baseurl=http://centos.alt.ru/repository/centos/6/$basearch/ 
 baseurl=http://mirror.neu.edu.cn/CentALT/6/x86_64/ 
 enabled=1 
 gpgcheck=0