Check the Amazon image version of your EC2 instance.

Command: cat /etc/image-id

If it is Amazon Linux 2023, it does not have extras.

However, most of the packages are already included in the distro.

You can run sudo yum install nginx which will install version 1.22

Answer from User123456 on Stack Overflow
🌐
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 ... The disconnect is that Amazon Linux 2022 is the successor of Amazon Linux 2.
🌐
Amazon Web Services
aws.amazon.com › premiumsupport › knowledge-center › ec2-install-extras-library-software
Install software from the Extras Library on an AL2 EC2 instance | AWS re:Post
June 18, 2025 - No match for argument: amazon-linux-extras Error: Unable to find a match: amazon-linux-extras ... [ec2-user@ip-172-31-47-190 ~]$ sudo yum repolist all repo id repo name status amazonlinux Amazon Linux 2023 repository enabled amazonlinux-debuginfo Amazon Linux 2023 repository - Debug disabled amazonlinux-source Amazon Linux 2023 repository - Source packages ...
🌐
LinuxVox
linuxvox.com › blog › amazonlinuxextras-command-not-found
Troubleshooting amazonlinux-extras command not found — linuxvox.com
This package is required to use the amazon-linux-extras command. Incorrect Amazon Linux Version: The amazon-linux-extras command is specific to Amazon Linux. If you are using a different Linux distribution, the command will not be available. PATH Environment Variable Issues: The directory where the amazon-linux-extras executable is located might not be included in the PATH environment variable.
🌐
Window Cage
windowscage.com › home › fixing “amazon-linux-extras command not found” error
Fixing “amazon-linux-extras command not found” Error - Window Cage
February 1, 2024 - For amazon-linux-extras to correctly run, the installed files must have execute permissions enabled for the root or ec2-user account. If permissions get changed incorrectly, the OS is unable to actually invoke amazon-linux-extras even though ...
🌐
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 ...
🌐
YouTube
youtube.com › roel van de paar
Unable to find or install amazon-linux-extras - YouTube
Unable to find or install amazon-linux-extrasHelpful? Please support me on Patreon: https://www.patreon.com/roelvandepaarWith thanks & praise to God, and wi...
Published   August 3, 2021
Views   1K
Find elsewhere
🌐
SysAdminSage
sysadminsage.com › home › blog › troubleshooting amazon-linux-extras: command not found
Troubleshooting Amazon-linux-extras: Command Not Found - SysAdminSage
June 8, 2024 - Another reason for encountering the error message could be due to a missing package installation. The “amazon-linux-extras” command relies on certain packages being installed on your system for it to work correctly. If these packages are missing or not properly installed, you may see the ...
🌐
GitHub
github.com › puppetlabs › puppetlabs-docker › issues › 70
Unable to locate package linux-image-extra-4.4.0-1041-aws on Amazon EC2 Ubuntu 16.04 · Issue #70 · puppetlabs/puppetlabs-docker
December 6, 2017 - I am trying to install docker on Amazon EC2 machine which is launched from Ubuntu 16.04 ami, but get the following error: Unable to locate package linux-image-extra-4.4.0-1041-aws This happens because there is no such package for AWS Ubu...
Author   puppetlabs
🌐
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
Check Package Installation: Confirm whether the package providing amazon-linux-extras is installed correctly. You can use the package manager to check if it's installed:
🌐
GitHub
github.com › puppeteer › puppeteer › issues › 7504
Using Amazon EC2 but can't install amazon-linux-extras · Issue #7504 · puppeteer/puppeteer
August 18, 2021 - Using Amazon EC2 but can't install amazon-linux-extras#7504 · Copy link · Labels · unconfirmed · mashwishi · opened · on Aug 18, 2021 · It runs fine when I host it to my PC, but it doesn't run on VPS/Cloud Hosting like Amazone EC2 and also to Heroku Error Log: /home/container/node_modules/node-html-to-image/node_modules/puppeteer-cluster/dist/Cluster.js:120 throw new Error(`Unable to launch browser, error message: ${err.message}`); ^ Error: Unable to launch browser, error message: Failed to launch the browser process!
Author   puppeteer
🌐
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
🌐
Medium
mavisec.medium.com › install-a-software-package-from-the-extras-library-on-an-ec2-instance-f0ecdb6b94b2
Install a software package from the Extras Library on an EC2 instance - mavisec - Medium
November 21, 2021 - Then, list the available software packages, enable the one you’re looking for, and then install the package using yum. Connect to your EC2 Linux Instance using SSH. 2. Confirm if the amazon-linux-extras package has been installed using the which’ command.
🌐
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 ... ... I want to install neofetch and screenfetch but I have yum as the default package manager in amazon linux and it does not have neofetch and screenfetch repositaries in it for me to install.
🌐
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.