Rhel/centos 6.x installs MySQL 5.5.x with EPEL6 and Remi's Yum source

Source: Internet
Author: User
Tags gpg metalink

PS: If you want to get RHEL's high-quality, high-performance, high-reliability, and need easy-to-use (the key is free) package update features, then Fedoraproject launched EPEL (Extra Packages for Enterprise Linux) just right for you. EPEL (Http://fedoraproject.org/wiki/EPEL) is a project built by the Fedora community to deliver high-quality software packages for RHEL and derivative distributions such as CentOS, scientific Linux, and more. Loaded with EPEL, just like in Fedora, you can install the software by using Yum install Package-name.

The system comes with a MySQL version is generally lower than the current stable version, want to use the latest stable version need to manually compile the installation, time-consuming needless to say, but also to solve the headache of a series of software dependencies, as system administrators want to find a convenient way to upgrade the MySQL version. Remi Source for Fedora and Rhel, CentOS update sources. Remi solves the dependencies of the relevant software and does not conflict with the original packages of Fedora and Rhel and CentOS. Remi uses Yum to automatically download software packages that need to be updated from the network.

The following is the configuration process, which I have verified:

First, enable the EPEL6 yum Source:

1, RHEL/CENTOS/SL Linux 6.x installed EPEL6 Yum Source:

32-bit System selection:
RPM-IVH http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
64-bit System selection:
RPM-IVH http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Import Key:
RPM--import/etc/pki/rpm-gpg/rpm-gpg-key-epel-6

2, the default will be created under/etc/yum.repos.d/Epel.repo and Epel-testing.repo two configuration files, Epel.repo content is as follows:


[Epel]
Name=extra Packages for Enterprise Linux 6-$basearch
#baseurl =http://download.fedoraproject.org/pub/epel/6/$basearch
Mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch= $basearch
Failovermethod=priority
Enabled=1
Gpgcheck=1
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-6

[Epel-debuginfo]
Name=extra Packages for Enterprise Linux 6-$basearch-debug
#baseurl =http://download.fedoraproject.org/pub/epel/6/$basearch/debug
Mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch= $basearch
Failovermethod=priority
Enabled=0
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-6
Gpgcheck=1

[Epel-source]
Name=extra Packages for Enterprise Linux 6-$basearch-source
#baseurl =http://download.fedoraproject.org/pub/epel/6/srpms
Mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch= $basearch
Failovermethod=priority
Enabled=0
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-6
Gpgcheck=1
If you want to use relatively new software, you can enable [epel-testing] source, the inside of the enabled=0 can be changed to enabled=1.

3, yum install Nginx test to see:

Yum Install Nginx

Second, enable the Remi RHEL6 Yum Source:

1, RHEL/CENTOS/SL Linux 6.x installed Remi RHEL6 Yum Source:

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

Import Key:
RPM--import/etc/pki/rpm-gpg/rpm-gpg-key-remi

2, the default will be created under/etc/yum.repos.d/remi.repo configuration file, Remi.repo content as follows:


[Remi]
Name=les RPM de Remi pour Enterprise Linux $releasever-$basearch
#baseurl =http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
Enabled=0
Gpgcheck=1
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-remi
Failovermethod=priority

[Remi-test]
Name=les RPM de Remi en test pour Enterprise Linux $releasever-$basearch
#baseurl =http://rpms.famillecollet.com/enterprise/$releasever/test/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/test/mirror
Enabled=0
Gpgcheck=1
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-remi

3, yum install MySQL 5.5 look:

Yum--enablerepo=remi install MySQL Mysql-server

If you are upgrading MySQL, please use:
Yum--enablerepo=remi update MySQL Mysql-server

Remi Official website: http://rpms.famillecollet.com/
Reference: Http://blog.famillecollet.com/pages/Config-en

Rhel/centos 6.x installs MySQL 5.5.x with EPEL6 and Remi's Yum source

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.