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

2개 답변
0
수락된 답변

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
전문가
답변함 6달 전
profile pictureAWS
전문가
검토됨 6달 전
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
전문가
Steve_M
답변함 6달 전
  • 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...

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠