🌐
AWS re:Post
repost.aws › knowledge-center › ec2-enable-epel
Activate EPEL repository for EC2 instances | AWS re:Post
October 1, 2015 - To determine the distribution that you use, run the following command: ... Important: AL2 will reach end of life on June 30, 2026. Make sure to migrate your AL2 instances to AL2023 before that date.
🌐
AWS re:Post
repost.aws › questions › QUmixmJazqTF2PNF-zUdaEEw › enable-epel-in-aws-linux-2022
enable epel in AWS Linux 2022 | AWS re:Post
August 20, 2022 - It's not directly compatible with RHEL, and therefore EPEL packages are unlikely to work with it. Customers in need of additional packages in AL2023 should request them through their customer representatives or support channels.
Discussions

Amazon Linux 2022
It's still in preview last I recall. More on reddit.com
🌐 r/aws
16
1
November 8, 2022
Amazon Linux 2023 Officially Released
By default, any instances launched with the AL2023 AMI will require the use of IMDSv2-only The amount of users who are about to be shocked that curl http://169.254.169.254/latest/meta-data/ no longer works will be numerous. More on reddit.com
🌐 r/aws
90
246
March 15, 2023
Fails to install EPEL when using Amazon Linux 2
Recently added this to a project, appears the default config may no longer be valid? I get the following error: fatal: [127.0.0.1]: FAILED! => changed=false attempts: 5 msg: 'failed to fetch key at... More on github.com
🌐 github.com
8
December 22, 2022
[Package Request] - how to install extras packages in amazonlinux:2022 docker image
Hi, I'm try to use amazonlinux:2022 as our base docker image, and I can see [amazon-linux-extras] this command everywhere. but actually I got command not found after input amazon-linux-extras install xxx. By the way, the default yum repo provide few packages. when I tried to add epel repo(by ... More on github.com
🌐 github.com
1
September 8, 2022
🌐
Stack Overflow
stackoverflow.com › questions › 74817869 › configuring-amazon-linux-extras-epel-on-amazon-linux-2-in-a-private-subnet
Configuring amazon-linux-extras epel on Amazon Linux 2 in a private subnet - Stack Overflow
I have an EC2 in a private subnet with no external internet access. I need to pull in a package called proj from the EPEL repository. Based on this documentation I should be able to run sudo amazon...
🌐
Ansible Pilot
ansiblepilot.com › articles › failed-installation-of-ansible-in-amazon-linux-2022-preview
Failed installation of Ansible in Amazon Linux 2022 Preview (AWS EC2) - Ansible install
Failed installation of Ansible in Amazon Linux 2022 Preview (AWS EC2) using the internal and the EPEL (Extra Packages for Enterprise Linux) repositories. I opened a Package Request report.
Published   June 23, 2024
🌐
LinuxShout
linux.how2shout.com › home › how to enable epel repo on amazon linux 2
How to Enable EPEL Repo on Amazon Linux 2 - LinuxShout
January 22, 2023 - Enable EPEL (Extra Packages for Enterprise Linux) in Amazon Linux 2 for installing various additional software packages that run on RPM-based Linux.
🌐
AWS
docs.aws.amazon.com › amazon linux › user guide › comparing al2 and al2023
Comparing AL2 and AL2023 - Amazon Linux 2023
3 weeks ago - Learn about key differences between AL2 and AL2023. Find out about lifespan and support, consistency with deterministic upgrades through versioned repositories, and new core packages.
🌐
AWS Lagi
awslagi.com › home › how can i enable epel repository on rhel, centos, amazonlinux2?
How Can I Enable epel repository on RHEL, CentOS, AmazonLinux2?
May 8, 2020 - sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm sudo dnf config-manager --set-enabled rhui-codeready-builder-for-rhel-8-rhui-rpms · Amazon Linux AMI: The EPEL repository is already installed on the original version of Amazon Linux, but you must enable it.
Find elsewhere
🌐
LinuxShout
linux.how2shout.com › home › can we install epel repo on amazon linux 2023?
Can we install EPEL repo on Amazon Linux 2023? - LinuxShout
June 13, 2023 - Therefore, if your project highly depends upon EPEL then it is recommended to use Alamlinux, Rocky, or Oracle. Alternatively, you can directly download and install desired RPM packages that are available through · Other Articles: How to create a Ubuntu Linux AWS ec2 Instance on Amazon Cloud · How to install Figlet on Amazon Linux · 5 Best free to use Linux Server Distributions for 2023 · How to install Amazon Linux 2.0 2022 on WSL – Windows 10 or 11 ·
🌐
Reddit
reddit.com › r/aws › amazon linux 2023 officially released
r/aws on Reddit: Amazon Linux 2023 Officially Released
March 15, 2023 - Yeah, you're right it seems. They removed the command, and the option to add epel. Shame for adding higher runtime versions of packages like python. They claim they will update them via quarterly releases, though... Source: https://aws.amazon.com/linux/amazon-linux-2023/faqs/
Top answer
1 of 2
7

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.

2 of 2
5

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)
🌐
CloudKatha
cloudkatha.com › home › can you install epel on amazon linux 2023?
Can you Install EPEL on Amazon Linux 2023? - CloudKatha
July 24, 2023 - If you are using an Enterprise Linux distribution, EPEL is a great way to add more software to your system and to keep your software up-to-date. ... The very simple answer as you would expect is NO. EPEL is not supported on Amazon Linux 2033.
🌐
DEV Community
dev.to › aws-builders › whats-different-about-amazon-linux-2022-ilb
What's different about Amazon Linux 2022? - DEV Community
June 29, 2023 - If you're already running Amazon Linux 2 or a similar Fedora-based built, including CentOS, once it's released to GA, AL2022 may be a worthwhile solution for several years. ... RPM packaging nerd. Works on EPEL, Fedora, and CentOS.
🌐
GitHub
github.com › geerlingguy › ansible-role-repo-epel › issues › 56
Fails to install EPEL when using Amazon Linux 2 · Issue #56 · geerlingguy/ansible-role-repo-epel
December 22, 2022 - Fails to install EPEL when using Amazon Linux 2#56 · Copy link · Labels · stale · acdoussan · opened · on Dec 22, 2022 · Issue body actions · Recently added this to a project, appears the default config may no longer be valid? I get the following error: fatal: [127.0.0.1]: FAILED!
Author   geerlingguy
🌐
GitHub
github.com › amazonlinux › amazon-linux-2023 › issues › 189
[Package Request] - how to install extras packages in amazonlinux:2022 docker image · Issue #189 · amazonlinux/amazon-linux-2023
September 8, 2022 - Hi, I'm try to use amazonlinux:2022 as our base docker image, and I can see [amazon-linux-extras] this command everywhere. but actually I got command not found after input amazon-linux-extras install xxx. By the way, the default yum repo provide few packages. when I tried to add epel repo(by command: yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm), I got this error: Error: Problem: conflicting requests
Author   amazonlinux
🌐
SysAdminXpert
ylz.afg.mybluehostin.me › home › linux › install epel repository on centos or rhel or amazon linux
Install EPEL Repository On CentOS Or RHEL Or Amazon Linux | SysAdminXpert
July 16, 2023 - In this Linux Tutorials, we’ll see the steps to Install EPEL Repository on CentOS or RHEL or Amazon Linux. For Additional packages most of the sysadmin use EPEL repository for their Linux system, It was created to use Fedora packages they maintain on RHEL and other compatible distributions.
🌐
Super User
superuser.com › questions › 1487748 › unable-to-find-or-install-amazon-linux-extras
Unable to find or install amazon-linux-extras - Super User
EDIT: This answer was valid in 2019. It looks like extras was removed as of Dec 2022. ... It says that... -bash: amazon-linux-extras: command not found ... Amazon Linux 2 AMI. I found a workaround to install nginx though: Using epel-release, that worked fine without the use of amazon-linux-extras...