Installing latest version of MariaDB on Amazon Linux 2 and Amazon Linux 2023

0

I am trying to install latest version of MariaDB, on Amazon Linux 2 and Amazon Linux 2023 and I intend to use yum repo for this but I can't find any baseurl for Amazon Linux . Meanwhile MariaDB ships with version 10.5 on both of these linux through their OS Repositories . Has anyone encountered this problem ?

asked 8 months ago3199 views
2 Answers
0

For Amazon Linux2, follow the steps below to add a repository.
https://mariadb.org/download/?t=repo-config&d=CentOS+7&v=10.11&r_m=xtom_jp

sudo amazon-linux-extras install epel -y
sudo yum update -y
sudo vi /etc/yum.repos.d/MariaDB.repo

# MariaDB 10.11 CentOS repository list - created 2023-06-07 08:48 UTC
# https://mariadb.org/download/
[mariadb]
name = MariaDB
# rpm.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https://mariadb.org/mirrorbits/ for details.
# baseurl = https://rpm.mariadb.org/10.11/centos/$releasever/$basearch
baseurl = https://mirrors.xtom.jp/mariadb/yum/10.11/centos/$releasever/$basearch
module_hotfixes = 1
# gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
gpgkey = https://mirrors.xtom.jp/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck = 1

sudo yum install MariaDB-server MariaDB-client -y

I don't know how to do this for Amazon Linux 2023 and will add it when I figure it out.

profile picture
EXPERT
answered 8 months ago
  • For Amazon Linux 2023, MariaDB 10.11 was installed by adding the following repository. https://mariadb.org/download/?t=repo-config&d=Red+Hat+Enterprise+Linux+9&v=10.11&r_m=xtom_jp

    sudo vi /etc/yum.repos.d/MariaDB.repo
    
    # MariaDB 10.11 RedHatEnterpriseLinux repository list - created 2023-06-07 09:26 UTC
    # https://mariadb.org/download/
    [mariadb]
    name = MariaDB
    # rpm.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https://mariadb.org/mirrorbits/ for details.
    # baseurl = https://rpm.mariadb.org/10.11/rhel/$releasever/$basearch
    baseurl = https://mirrors.xtom.jp/mariadb/yum/10.11/rhel/9/$basearch
    # gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgkey = https://mirrors.xtom.jp/mariadb/yum/RPM-GPG-KEY-MariaDB
    gpgcheck = 1
    
    sudo dnf install MariaDB-server MariaDB-client
    

    The point is that for Amazon Linux2 we used the repository for CentOS7 and for Amazon Linux2023 we used the repository for RHEL9.

0

I am seeing that you have commented out # baseurl = https://rpm.mariadb.org/10.11/rhel/$releasever/$basearch instead you are using baseurl = https://mirrors.xtom.jp/mariadb/yum/10.11/rhel/9/$basearch . Is this source mirrors.xtom.jp reliable ? By the way thanks a ton you saved my day. But, I am unsure if i should install through mirrors, I am concerned about security issues still.

answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions