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 ?

gefragt vor einem Jahr4260 Aufrufe
2 Antworten
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
EXPERTE
beantwortet vor einem Jahr
  • 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.

beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen