Add MariaDB Repositories
To install MariaDB mainline repository in CentOS 7, run commands below to create a MariaDB repository on your system
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
To install MariaDB CentOS 7 after adding the new repository, run the commands below.
yum update