Removing MariaDB 5.5

Now if you have MariaDB already installed you’ll need to uninstall it first, do this by running the following command. If you have data stored in the database then you should take backups before doing anything.

sudo yum remove mariadb mariadb-server

Installing MariaDB 10.2

Now we can update Yum’s package repositories, it sounds complicated but it’s really easy.

sudo yum update

Now we’ll reinstall MariaDB but with the newer version, some dependencies might also be installed.

sudo yum install mariadb mariadb-server

Now start MariaDB

sudo service mariadb start

Checking the version

After that we’ll check the installed version like we did at the start.