Add Additional Repositories

Install additional repositories

Additional Repositories

  1. Using the commands below, install the Epel and PHP repositories:
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

MySQL Repository

Replace MariaDB with MySQL
  1. Navigate to https://dev.mysql.com/downloads/repo/yum/
  2. Select the correct package corresponding to the version running on the server and click download.
  3. Scroll down to 'No thanks, just start my download' and right click on the link.
  4. Click 'Copy link address.'
  5. Run the command below to install the MySQL repository.
yum localinstall 'link address copied from MySQL website'
Enable the correct release series
  1. Manually edit the '/etc/yum.repos.d/mysql-community.repo' file with your favorite text editor.
  2. Specify enabled=0 to disable a subrepository, or enabled=1 to enable a subrepository, see example below to enable MySQL 5.6 and disable MySQL 5.7 series.
# Enable to use MySQL 5.6 & Disabled MySQL 5.7
[mysql56-community]
name=MySQL 5.6 Community Serverbaseurl=http://repo.mysql.com/yum/mysql-5.6-
community/el/6/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[mysql57-community]
name=MySQL 5.7 Community Serverbaseurl=http://repo.mysql.com/yum/mysql-5.7-
community/el/6/$basearch/
enabled=0
gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

Note: When sub repositories for more than one release series are enabled, the latest series will be used by Yum.


Revision #1
Created 14 April 2020 00:51:05 by Admin
Updated 14 April 2020 01:00:37 by Admin