There is an option to run it in the docker container or install the engine in the system.
1. to install the latest version
vim /etc/yum.repos.d/mariadb.repo
[mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.6/rhel8-amd64 module_hotfixes=1 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
2. install it
dnf install mariadb-server
3. start and enable the service:
systemctl start mariadb systemctl enable mariadb
3. fast hardening:
mariadb-secure-installation