Jason Yu
asked on
can not install mysql community server from repository on a amazon linux instance.
Dear experts here, good morning:
I am following this link to install mysql5.7 on a test rhel instance. https://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html#yum-repo-installing-mysql. I downloaed the repository called "mysql57-community-release -el7-9.noa rch.rpm" and installed it as below:
[root@nginxserver jyu]# yum localinstall mysql57-community-release- el7-9.noar ch.rpm
Loaded plugins: priorities, update-motd, upgrade-helper
Examining mysql57-community-release- el7-9.noar ch.rpm: mysql57-community-release- el7-9.noar ch
mysql57-community-release- el7-9.noar ch.rpm: does not update installed package.
Nothing to do
[root@nginxserver jyu]# rpm -qa | grep mysql
mysql57-community-release- el7-9.noar ch
mysql-community-client-5.7 .15-1.el7. x86_64
mysql-community-libs-5.7.1 5-1.el7.x8 6_64
mysql-community-common-5.7 .15-1.el7. x86_64
[root@nginxserver jyu]# yum repolist enabled | grep "mysql.*-community.*"
!mysql-connectors-communit y/x86_64 MySQL Connectors Community 19+5
!mysql-tools-community/x86 _64 MySQL Tools Community 36
!mysql57-community/x86_64 MySQL 5.7 Community Server 146
However, when I tried to install the mysql-community-server, it complains about the missing "systemd". My rhel version is amazon linux
[root@nginxserver jyu]# cat /etc/*-release
NAME="Amazon Linux AMI"
VERSION="2016.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2016.03"
PRETTY_NAME="Amazon Linux AMI 2016.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:li nux:2016.0 3:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
Amazon Linux AMI release 2016.03
[root@nginxserver jyu]# yum install mysql-community-server
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
mysql-connectors-community /x86_64 | 2.5 kB 00:00
mysql-tools-community/x86_ 64 | 2.5 kB 00:00
mysql57-community/x86_64 | 2.5 kB 00:00
5 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86 _64 0:5.7.16-1.el7 will be installed
--> Processing Dependency: mysql-community-common(x86 -64) = 5.7.16-1.el7 for package: mysql-community-server-5.7 .16-1.el7. x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.7 .16-1.el7. x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.7 .16-1.el7. x86_64
--> Running transaction check
---> Package mysql-community-common.x86 _64 0:5.7.15-1.el7 will be updated
---> Package mysql-community-common.x86 _64 0:5.7.16-1.el7 will be an update
---> Package mysql-community-server.x86 _64 0:5.7.16-1.el7 will be installed
--> Processing Dependency: systemd for package: mysql-community-server-5.7 .16-1.el7. x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.7 .16-1.el7. x86_64
--> Finished Dependency Resolution
Error: Package: mysql-community-server-5.7 .16-1.el7. x86_64 (mysql57-community)
Requires: systemd
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@nginxserver jyu]#
I am following this link to install mysql5.7 on a test rhel instance. https://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/linux-installation-yum-repo.html#yum-repo-installing-mysql. I downloaed the repository called "mysql57-community-release
[root@nginxserver jyu]# yum localinstall mysql57-community-release-
Loaded plugins: priorities, update-motd, upgrade-helper
Examining mysql57-community-release-
mysql57-community-release-
Nothing to do
[root@nginxserver jyu]# rpm -qa | grep mysql
mysql57-community-release-
mysql-community-client-5.7
mysql-community-libs-5.7.1
mysql-community-common-5.7
[root@nginxserver jyu]# yum repolist enabled | grep "mysql.*-community.*"
!mysql-connectors-communit
!mysql-tools-community/x86
!mysql57-community/x86_64 MySQL 5.7 Community Server 146
However, when I tried to install the mysql-community-server, it complains about the missing "systemd". My rhel version is amazon linux
[root@nginxserver jyu]# cat /etc/*-release
NAME="Amazon Linux AMI"
VERSION="2016.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2016.03"
PRETTY_NAME="Amazon Linux AMI 2016.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:li
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
Amazon Linux AMI release 2016.03
[root@nginxserver jyu]# yum install mysql-community-server
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
mysql-connectors-community
mysql-tools-community/x86_
mysql57-community/x86_64 | 2.5 kB 00:00
5 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86
--> Processing Dependency: mysql-community-common(x86
--> Processing Dependency: systemd for package: mysql-community-server-5.7
--> Processing Dependency: systemd for package: mysql-community-server-5.7
--> Running transaction check
---> Package mysql-community-common.x86
---> Package mysql-community-common.x86
---> Package mysql-community-server.x86
--> Processing Dependency: systemd for package: mysql-community-server-5.7
--> Processing Dependency: systemd for package: mysql-community-server-5.7
--> Finished Dependency Resolution
Error: Package: mysql-community-server-5.7
Requires: systemd
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@nginxserver jyu]#
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No, if you just do "yum install mysql56-server", it'll also take care of the dependencies that it needs.
ASKER
cool, it works perfectly. I have mysql56 installed.
Thank you so much.
Thank you so much.
remove el7 repo package first.
rpm -evvy mysql57-community-release- el7-9.noar ch
rpm -evvy mysql57-community-release-
ASKER
precise and quick solution! thank you so much.
ASKER
Do I need uninstall these packages before installing mysql56?
[root@nginxserver jyu]# rpm -qa | grep mysql
mysql57-community-release-
mysql-community-client-5.7
mysql-community-libs-5.7.1
mysql-community-common-5.7
[root@nginxserver jyu]#