I had a hard time installing MariaDB 10.5.5 on CentOS 8 of Sakura VPS

Overview

I prepared CentOS 8 on Sakura VPS and tried to install MariaDB 10.5.5 (latest as of October 4, 2020) on it, but I struggled a little, so I will leave a record.

Contents that struggled

When I tried to prepare and install the yum repository by referring to the net article, I got the message nothing provides rsync needed by MariaDB-server-10.5.5-1.el8.x86_64, and installed MariaDB-server. I encountered an event that I couldn't do it.

I tried to set the repository with my own repository and two patterns of preparing the repository from https://downloads.mariadb.com/MariaDB/mariadb_repo_setup, and in either case this phenomenon could not be solved.

** Repository setting pattern ① **

ini:/etc/yum.repos.d/mariadb.repo


[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/centos8-amd64
module_hotfixes=1
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

** Repository setting pattern ② **

ini:/etc/yum.repos.d/mariadb.repo


[mariadb-main]
name = MariaDB Server
baseurl = https://downloads.mariadb.com/MariaDB/mariadb-10.5/yum/rhel/$releasever/$basearch
gpgkey = file:///etc/pki/rpm-gpg/MariaDB-Server-GPG-KEY
gpgcheck = 1
enabled = 1
module_hotfixes = 1

[mariadb-maxscale]
# To use the latest stable release of MaxScale, use "latest" as the version
# To use the latest beta (or stable if no current beta) release of MaxScale, use "beta" as the version
name = MariaDB MaxScale
baseurl = https://downloads.mariadb.com/MaxScale/2.4/centos/$releasever/$basearch
gpgkey = file:///etc/pki/rpm-gpg/MariaDB-MaxScale-GPG-KEY
gpgcheck = 1
enabled = 1

[mariadb-tools]
name = MariaDB Tools
baseurl = https://downloads.mariadb.com/Tools/rhel/$releasever/$basearch
gpgkey = file:///etc/pki/rpm-gpg/MariaDB-Enterprise-GPG-KEY
gpgcheck = 1
enabled = 1

When I try to dnf install with the contents of this repository, it looks like this:

# dnf info MariaDB-server MariaDB-devel --disablerepo=* --enablerepo=mariadb
Final confirmation of metadata expiration: 5:58:It was held 32 hours ago on October 04, 2020 at 13:12:16.
Available packages
name: MariaDB-devel
version: 10.5.5
release: 1.el8
Arch         : x86_64
size: 7.9 M
Source: MariaDB-devel-10.5.5-1.el8.src.rpm
Repository: mariadb
Overview: MariaDB: a very fast and robust SQL database server
URL          : http://mariadb.org
license: GPLv2
Explanation: MariaDB: a very fast and robust SQL database server
             : 
             : It is GPL v2 licensed, which means you can use the it free of charge under the
             : conditions of the GNU General Public License Version 2 (http://www.gnu.org/licenses/).
             : 
             : MariaDB documentation can be found at https://mariadb.com/kb
             : MariaDB bug reports should be submitted through https://jira.mariadb.org

name: MariaDB-server
version: 10.5.5
release: 1.el8
Arch         : x86_64
size: 27 M
Source: MariaDB-server-10.5.5-1.el8.src.rpm
Repository: mariadb
Overview: MariaDB: a very fast and robust SQL database server
URL          : http://mariadb.org
license: GPLv2
Explanation: MariaDB: a very fast and robust SQL database server
             : 
             : It is GPL v2 licensed, which means you can use the it free of charge under the
             : conditions of the GNU General Public License Version 2 (http://www.gnu.org/licenses/).
             : 
             : MariaDB documentation can be found at https://mariadb.com/kb
             : MariaDB bug reports should be submitted through https://jira.mariadb.org

# dnf install MariaDB-server MariaDB-devel --disablerepo=* --enablerepo=mariadb
Final confirmation of metadata expiration: 5:59:It was held 11 hours ago on October 04, 2020 at 13:12:16.
error: 
problem: cannot install the best candidate for the job
  - nothing provides rsync needed by MariaDB-server-10.5.5-1.el8.x86_64
(To skip non-installable packages'--skip-broken'Or try adding'--nobest'Do not use only the best candidate packages)

Workaround

After all, I couldn't solve it by any means, so I switched to the procedure of simply dropping the rpm and installing it.

# cd /usr/local/src/
# curl -O https://downloads.mariadb.com/MariaDB/mariadb-10.5.5/yum/centos/mariadb-10.5.5-rhel-8-x86_64-rpms.tar
# tar xvf mariadb-10.5.5-rhel-8-x86_64-rpms.tar
# cd mariadb-10.5.5-rhel-8-x86_64-rpms
# dnf localinstall MariaDB-common-10.5.5-1.el8.x86_64.rpm
# dnf localinstall MariaDB-server-10.5.5-1.el8.x86_64.rpm
# dnf localinstall MariaDB-devel-10.5.5-1.el8.x86_64.rpm

By executing the above for the time being, I was able to proceed with the installation of MariaDB.

# mysql -V
mysql  Ver 15.1 Distrib 10.5.5-MariaDB, for Linux (x86_64) using readline 5.1

Recommended Posts

I had a hard time installing MariaDB 10.5.5 on CentOS 8 of Sakura VPS
A story that I had a hard time trying to build PHP 7.4 on GCE's CentOS 8
Android: I had a hard time displaying the HTML file on the SD card
[Solution] A memo that I had a hard time because the format of sinatra-validation changed
I tried installing CentOS 8 on ESXi 6.7
The story that docker had a hard time
Prepare the environment of CentOS 8 with Sakura VPS
I had a hard time doing Java multithreading from scratch, so organize it
Build a Java runtime environment on Sakura VPS
left4dead2 I made a Docker image for the server and tried running it on GCE # 3 (I had a hard time building the server)
I made a mistake when installing VLC on Ubuntu 18.04 via snap
A story that I was addicted to twice with the automatic startup setting of Tomcat 8 on CentOS 8