From Amazon Linux 2023 FAQ :

Q: Does AL2023 have Amazon-Linux-Extras like AL2?

A: No, AL2023 does not have extras. For higher-level software packages like language runtimes, we will use the quarterly release where we will add major/minor updates to packages as separate namespaced packages in addition to the default package provided in the repository. For example, default Python version in Amazon Linux 2023 may be 3.8, but we will add Python 3.9 (python39) as a separate namespaced package whenever it is made available. These additional packages will closely follow their upstream release cadence and support model and their support policies can be accessed by the package manager for compliance and security use cases. Default packages will continue to be supported throughout the life of AL2023.

This explains your problem - amazon-linux-extras doesn't exist in Amazon Linux 2023, although it existed in Amazon Linux 2.

Answer from harrymc on Stack Exchange
Discussions

[Bug] - amazon-linux-extras: command not found on 2023.0.20230315.0
We used to run amazon-linux-extras to install various additional packages on amazonlinux. Starting from the latest push command disappeared. To Reproduce FROM public.ecr.aws/amazonlinux/amazonlinux... More on github.com
🌐 github.com
8
March 16, 2023
sudo: amazon-linux-extras: command not found
I want to deploy wordpress website using RDS and ec2 and for that i'm taking help of aws hands on tutorial to deploy wordpress with RDS. one point came deploy wordpress and this command is given bu... More on repost.aws
🌐 repost.aws
1
0
May 23, 2023
ssh - Error: sudo: amazon-linux-extras: command not found - Stack Overflow
System Information: Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-1045-aws x86_64) Problem: Trying to run sudo amazon-linux-extras install epel -y and sudo yum install -y chromium Because i need it for my Di... More on stackoverflow.com
🌐 stackoverflow.com
[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
🌐
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
🌐
GitHub
github.com › amazonlinux › amazon-linux-2023 › issues › 290
[Bug] - amazon-linux-extras: command not found on 2023.0.20230315.0 · Issue #290 · amazonlinux/amazon-linux-2023
March 16, 2023 - We used to run amazon-linux-extras to install various additional packages on amazonlinux. Starting from the latest push command disappeared. To Reproduce FROM public.ecr.aws/amazonlinux/amazonlinux:latest RUN amazon-linux-extras install ...
Author   amazonlinux
🌐
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 - You can't use the following resolution steps for instances that run on Amazon Linux 2023 (AL2023). To install a software package, complete the following steps: Use SSH to connect to your Amazon EC2 Linux instance. To check whether you installed the amazon-linux-extras package, run the following command:
🌐
Amazon Web Services
aws.amazon.com › compute › amazon linux 2 › faqs
Amazon Linux 2 FAQs
2 weeks ago - Customers need to migrate to Amazon Linux 2023 (AL2023) prior to the AL2’s end of support (EOS) on June 30, 2026 [Refer Q2]. AWS will not launch new Amazon Linux versions in 2025 or 2026. AWS will provide one-year advance notice before launching new OS versions to help you plan your migrations.
Find elsewhere
🌐
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.
🌐
The Tools Trunk
thetoolstrunk.com › home › amazon linux extras command not found | fast fix steps
Amazon Linux Extras Command Not Found | Fast Fix Steps
January 1, 2026 - If you confirmed Amazon Linux 2 and the command still fails, treat it like any missing binary. First check if the file exists, then install the package that provides it, then verify it runs. Check If The Binary Exists — This tells you if it’s installed and in your path. command -v ...
🌐
Super User
superuser.com › questions › 1487748 › unable-to-find-or-install-amazon-linux-extras
Unable to find or install amazon-linux-extras - Super User
Used 'find' command and found amazon_linux_extras here: /usr/lib/python2.7/site-packages/amazon_linux_extras ... @RichardTylerMiles - where is it documented that amazon-linux-extras has been removed? I'm having an issue where I'm trying to use the utility but it hangs silently when trying to install docker. However, a recent support post (01/25/2023) says to use it to upgrade the linux kernel here
🌐
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...
🌐
Stack Overflow
stackoverflow.com › questions › 68828553 › error-sudo-amazon-linux-extras-command-not-found
ssh - Error: sudo: amazon-linux-extras: command not found - Stack Overflow
sudo: amazon-linux-extras: command not found · The command which helps install Java successfully here is · sudo dnf install java-11-amazon-corretto -y · Share · Improve this answer · Follow · edited Jun 1, 2023 at 18:53 · Anonymous · ...
🌐
LinuxVox
linuxvox.com › blog › amazonlinuxextras-command-not-found
Troubleshooting amazonlinux-extras command not found — linuxvox.com
If you are not using Amazon Linux, the amazon-linux-extras command will not be available. If the package is not installed, you can install it using the following command: ... The amazon-linux-extras executable is usually located in /usr/bin.
🌐
GitHub
github.com › amazonlinux › amazon-linux-2023 › issues › 340
[Missing Documentation] - amazon-linux-extras error · Issue #340 · amazonlinux/amazon-linux-2023
May 5, 2023 - on May 5, 2023 · Issue body actions · 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
🌐
Reddit
reddit.com › r/aws › amazon linux 2023 officially released
r/aws on Reddit: Amazon Linux 2023 Officially Released
March 15, 2023 - I tried multiple ways but no luck. It was pretty simple with Amazon Linux 2. Need to install byobu on instance. ... epel Amazon decided not to support EPEL repo on AL2023 and removed amazon-linux-extras.
🌐
Stack Overflow
stackoverflow.com › questions › tagged › amazon-linux-extras
Recently Active 'amazon-linux-extras' Questions - Stack Overflow
It appears that Amazon Linux 2 v5.0 image (Amazon Linux 2 x86_64 standard:5.0 runtime available to CodeBuild) no longer contains Amazon Linux Extras, which makes a lot of documentation and answers ...
🌐
Medium
ahsonshaikh616.medium.com › discontinuation-of-amazon-linux-extra-command-in-latest-amazon-linux-2023-release-f23c356f7c2c
Discontinuation of Amazon-linux-extra Command in Latest Amazon Linux 2023 Release | by Ahson Shaikh | Medium
March 26, 2023 - It’s important for the community to be informed of the discontinuation of Amazon-Linux-Extra commands in the latest release of Amazon Linux. As developers, we rely on these commands to perform crucial tasks in our development environments.
🌐
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...
Author   amazonlinux