AL2023 default package manager is DNF

Example:

sudo dnf install postgresql15

Answer from codebusta on Stack Overflow
🌐
Amazon Web Services
aws.amazon.com › compute › amazon linux 2 › faqs
Amazon Linux 2 FAQs
2 weeks ago - A Linux kernel tuned for performance on Amazon EC2. A set of core packages including systemd, GCC 7.3, Glibc 2.26, Binutils 2.29.1 that receive Long Term Support (LTS) from AWS. An extras channel for rapidly evolving technologies that are likely to be updated frequently and outside the Long ...
🌐
AWS re:Post
repost.aws › knowledge-center › ec2-install-extras-library-software
Install software from the Extras Library on an AL2 EC2 instance | AWS re:Post
June 18, 2025 - Example output: $ sudo amazon-linux-extras enable php8 .1Topic php8.1 has end-of-support date of 2024-11-25 2 httpd_modules available [ =1.0 =stable ] 3 memcached1.5 available \ [ =1.5.1 =1.5.16 =1.5.17 ] 9 R3.4 available [ =3.4.3 =stable ] ...
Discussions

How to resolve amazon-linux-extras in AL2023?
Hello, I'm working on a project where we use amazon-linux-extras, but after updating to AL2023 we are getting an error that it can't be found. I've seen in some forums that it has been discontinue... More on repost.aws
🌐 repost.aws
1
0
May 5, 2023
[Missing Documentation] - amazon-linux-extras error
Hello, I'm working on a project where we use amazon-linux-extras, but after updating to AL2023 we are getting an error that it can't be found. I've seen in some forums that it has been ... More on github.com
🌐 github.com
3
May 5, 2023
amazon-linux-extras on EB for Amazon Linux 2023
I have set up an .ebextensions file in a Java deployment on EB to add additional metrics to cloud watch. Just recently tried deploying this to Amazon Linux 2023 with Corretto 17. It's failing to in... More on repost.aws
🌐 repost.aws
1
0
September 28, 2023
amazon-linux-extras not working
![](/media/postImages/original/IMcuzzwxzvREmm3z5SeHOhjg) getting this error please help me to solve this More on repost.aws
🌐 repost.aws
1
0
July 17, 2023
🌐
Amazon Web Services
aws.amazon.com › compute › linux from aws › amazon linux 2023 faqs
Amazon Linux 2023 FAQs
2 weeks ago - Besides offering frequent updates ... Amazon Linux 2023 provides a predictable release cadence, flexibility and control over new software updates, and eliminates the operational overhead that comes with creating custom policies to meet standard compliance requirements. No, AL2023 does not have extras...
Find elsewhere
🌐
AWS
docs.aws.amazon.com › amazon linux 2 › release notes › amazon linux 2 release notes › amazon linux 2 release notes for 2020 and earlier › amazon linux 2 release notes
Amazon Linux 2 release notes - Amazon Linux 2
SystemdExtrasDocker is only in extrasC Runtime, compiler, and toolsSystem directories moved into /usrcloud-init updatesVirtual Machine images for on-premises useAutomation of security patching at scale with AWS Systems Manager Patch ManagerUpgrading from Amazon Linux 2 LTS Candidate 2 · These are release notes for Amazon Linux 2. Amazon Linux 2 provides the systemd service and systems manager as replacements ...
🌐
GitHub
github.com › amazonlinux › amazon-linux-2023 › issues › 340
[Missing Documentation] - amazon-linux-extras error · Issue #340 · amazonlinux/amazon-linux-2023
May 5, 2023 - Hello, I'm working on a project where we use amazon-linux-extras, but after updating to AL2023 we are getting an error that it can't be found. I've seen in some forums that it has been discontinued, could you inform me if there is any substitute for this package?
Author   amazonlinux
🌐
AWS
docs.aws.amazon.com › amazon linux › user guide › al2 extras library
AL2 Extras Library - Amazon Linux 2
Describes AL2 Extras. Find out about lifespan, support, and package changes.
🌐
CloudKatha
cloudkatha.com › home › can you install amazon-linux-extras in amazon linux 2023?
Can you Install amazon-linux-extras in Amazon Linux 2023? - CloudKatha
July 31, 2023 - Short answer is No. amazon-linux-extras is not available in Amazon Linux 2023. However you can install any newer version of package from the
🌐
TuxCare
tuxcare.com › home › amazon linux 2 eol: what you need to do before june 30, 2026
Amazon Linux 2 EOL: What You Need to Do Before June 30, 2026
April 21, 2026 - Amazon Linux 2023 removes the amazon-linux-extras mechanism that many teams relied on. It also drops EPEL compatibility, eliminates 32-bit application support, and shifts from Linux kernel 5.10 to kernel 6.1.
🌐
AWS
docs.aws.amazon.com › amazon linux › user guide › what is amazon linux 2?
What is Amazon Linux 2? - Amazon Linux 2
With the implementation of Amazon Linux 2023 (AL2023), AL2 is now the previous generation of Amazon Linux from AWS.
🌐
Super User
superuser.com › questions › 1487748 › unable-to-find-or-install-amazon-linux-extras
Unable to find or install amazon-linux-extras - Super User
The disconnect is that Amazon Linux 2022 is the successor of Amazon Linux 2. Full Changes. Note al2 uses RHEL while al2022 is a Fedora spin off. ... EDIT: This answer was valid in 2019. It looks like extras was removed as of Dec 2022.