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)?

gefragt vor 6 Monaten462 Aufrufe
2 Antworten
0
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 6 Monaten
profile pictureAWS
EXPERTE
überprüft vor 6 Monaten
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
EXPERTE
Steve_M
beantwortet vor 6 Monaten
  • 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...

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