I could install other packages except 'amazon-linux-extras'
Issue:
$ which amazon-linux-extras
(response) /usr/bin/which: no amazon-linux-extras in (/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/snapd/snap/bin)
Asking for Solution:
How can the above error be resolved? ...cause ($ sudo yum install amazon-linux-extras) Error: Unable to find a match: amazon-linux-extras
Thank you for your comment. We'll review and update the Knowledge Center article as needed.
Not worked amazon-linux-extras not found
This article doesn't work for Amazon Linux 2023. Just trying to install Java 11 from amazon-linux-extras, with out luck.
see results
[ec2-user@ip-172-31-99-999 ~]$ sudo yum install -y amazon-linux-extras
Last metadata expiration check: 0:09:51 ago on Tue Apr 4 14:04:54 2023.
No match for argument: amazon-linux-extras
Error: Unable to find a match: amazon-linux-extras
and
repo list doesn't contain amazon-linux-extras. So can't be enabled.
[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 disabled
kernel-livepatch Amazon Linux 2023 Kernel Livepatch repository enabled
kernel-livepatch-source Amazon Linux 2023 Kernel Livepatch repository - Source packages disabled
[ec2-user@ip-172-31-47-190 ~]$
Thank you for your comment. We'll review and update the Knowledge Center article as needed.
This also does not work for AL2 v5 image (aws/codebuild/amazonlinux2-x86_64-standard:5.0
)
Thank you for your comment. We'll review and update the Knowledge Center article as needed.
For brand new Amazon Linux 2 instance
which amazon-linux-extras/usr/bin/amazon-linux-extras
results in:
/usr/bin/which: no amazon-linux-extras in (./amazon-linux-extras/usr/bin)
yum install -y amazon-linux-extras
results in:
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd, versionlock 249 packages excluded due to repository priority protections Package amazon-linux-extras-2.0.3-1.amzn2.noarch already installed and latest version Nothing to do
Extras is already installed, but the which command looking in the wrong place.
which amazon-linux-extras
results in:
/bin/amazon-linux-extras
Thank you for your comment. We'll review and update the Knowledge Center article as needed.
amazon-linux-extras is no longer available for Amazon Linux 2023. What is the alternative?
Thank you for your comment. We'll review and update the Knowledge Center article as needed.
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago