How i can upgrade mariadb with a Amazon Linux 2 AMI

0

I am using latest amzn2-ami-hvm-2.*-x86_64-gp2 and our vulnerabilty scanner tells me, that mariadb 10.5 has vulnerabilities. With amazon-extra-linux i enabled mariadb and would like to update to the newest one. but in amazon-extra-linux the latest version is 10.5 so i can not update. I added the mariadb repo, but there is no version for centos2. Does anyone an idea how i can upgrade mariadb to version minimum 10.8 at Amazon Linux 2 (centos2)?

asked 6 months ago439 views
2 Answers
0
Accepted Answer

Hello.

Amazon Linux2 can use the same repositories as CentOS7.
So, you can install MariaDB10.8 by configuring as follows.

sudo vi /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.8/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
profile picture
EXPERT
answered 6 months ago
profile pictureAWS
EXPERT
reviewed 6 months ago
0

A similar question was asked a few months ago https://repost.aws/questions/QUnXyhhfEdREqbyDA4Wk90uA/installing-latest-version-of-mariadb-on-amazon-linux-2-and-amazon-linux-2023

The solution for Amazon Linux 2 is to use the repo for CentOS 7 (it's advisable to select a mirror that's geographically closest to you) https://mariadb.org/download/?t=repo-config&d=CentOS+7&v=10.11&r_m=xtom_jp

profile picture
EXPERT
Steve_M
answered 6 months ago
  • Thanks a lot for your Answer. I try this more then once with different base urls and there is every time a not found message, because there is no repo for centos2. But with hardcoded 7 instead $releasever the repo works fine. Thanks a lot. But next thing is: Package(s) mariadb available, but not installed. And now i ask me, why our Vulnerability Scanner tells me an issue...

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