No package available when installing packages on CentOS 6.6

2

1

I wanted to install mysql-server on CentOS 6.6 (64bit). When I run yum install mysql-server, I get the following error:

root@ip-50-62[/home/syn]# yum install mysql-server
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: p3plmirror02.prod.phx3.secureserver.net
 * extras: p3plmirror02.prod.phx3.secureserver.net
 * jpackage-generic: ftp.heanet.ie
 * jpackage-generic-updates: ftp.heanet.ie
 * rpmforge: mirror.hmc.edu
 * updates: p3plmirror02.prod.phx3.secureserver.net
No package mysql-server available.
Error: Nothing to do

How do I install it?

S R

Posted 2015-02-19T00:57:48.603

Reputation: 195

Answers

1

Solved the problem myself. File /etc/yum.com had mysql* excluded. I removed mysql* for some period of time & installed it. I got installed like a charm. Now putting back the mysql* in exclude.

Hope that helps someone!

S R

Posted 2015-02-19T00:57:48.603

Reputation: 195

What is /etc/yum.com means ? It is /etc/yum.conf right ? – max – 2015-04-27T16:22:54.333

0

It seems that MySQL is no longer a part of the repo in CentOS 7, but you are using CentOS 6.6. If you want to go down the MariaDB route, many online postings—like this one at Digital Ocean—point to using MariaDB as a drop-in substitute for MySQL and recommend just installing MariaDB instead via this command:

sudo yum install mariadb-server mariadb

But doing some more searching shows that MySQL can still be installed via this command as explained in this posting on installing MySQL 5.6 Fedora, CentOS and RedHat:

sudo yum install mysql-community-server

One thing you can always do with yum is search the repository for packages that have a certain name or contain certain words like this:

yum search mysql*

Which should give you a list of any/all packages in the repository that contain that word in it.

JakeGould

Posted 2015-02-19T00:57:48.603

Reputation: 38 217