Amazon Linux 2022
Amazon Linux 2023 Officially Released
Fails to install EPEL when using Amazon Linux 2
[Package Request] - how to install extras packages in amazonlinux:2022 docker image
So I found out this week that I somehow missed Amazon Linux 2022 was even a thing (shame on me). Does anybody have any notes/tips/gotchas from moving over from amzn2?
The EPEL repo is not supported on Amazon Linux 2023.
From the docs
Extra Packages for Enterprise Linux (EPEL) is a project in the Fedora community with the objective of creating a large array of packages for enterprise-level Linux operating systems. The project has primarily produced RHEL and CentOS packages. Amazon Linux 2 features a high level of compatibility with CentOS 7. As a result, many EPEL7 packages work on Amazon Linux 2. However, AL2023 doesn't support EPEL or EPEL-like repositories.
Source: https://docs.aws.amazon.com/linux/al2023/ug/compare-with-al2.html#epel
It's easy enough to spin up another instance so I'm just going to spin up an Amazon Linux 2 AMI and do the work on there instead.
Even though the EPEL repository is not available for Amazon Linux 2023, you can still use Fedora repositories as alternatives because AL2023 and Fedora share a close relationship, and EPEL is a part of the Fedora Project.
Below is an example of a configuration file for the Fedora 36 repository:
# /etc/yum.repos.d/fedora.repo
[fedora]
name=Fedora 36 - $basearch
#baseurl=http://download.example/pub/fedora/linux/releases/36/Everything/$basearch/os/
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-36&arch=$basearch
enabled=1
metadata_expire=7d
repo_gpgcheck=0
type=rpm
gpgcheck=1
gpgkey=https://getfedora.org/static/fedora.gpg
https://src.fedoraproject.org/rpms/fedora-repos/raw/f36/f/RPM-GPG-KEY-fedora-36-primary
skip_if_unavailable=False
Upon successful configuration, you can access Fedora 36 packages.
bash-5.2$ dnf repoquery --nvr gimp
Last metadata expiration check: 0:26:43 ago on Thu Jun 6 10:04:18 2024.
gimp-2.10.30-1.fc36.1
Refs.
- Add Fedora repositories to AL2023 (Japanese)
- Add RPM Fusion repositories to AL2023 (Japanese)