Amazon Linux 2023

amazon-linux-extras: command not found

amazon-linux-extras: command not found

What it means

The amazon-linux-extras mechanism was removed in Amazon Linux 2023; it only exists on Amazon Linux 2.

Why it happens

Amazon Linux 2023 dropped the Extras Library. Packages that used to live behind amazon-linux-extras may now be in the core repositories under a different name or in SPAL (Supplementary Packages for Amazon Linux).

How to fix it

  1. Stop calling amazon-linux-extras — it does not exist on AL2023.
  2. Search the current repositories first with `dnf search <name>` and `dnf provides '*/<binary>'`; package names vary by AL2023 release.
  3. If the package is absent from core, check the documented SPAL repository and its support limitations.
  4. Update Dockerfiles and user-data scripts that still run `amazon-linux-extras enable ...` / `install`.

Related deadline: Amazon Linux 2 EOL2026-06-30.

Check configured patterns in your project

The free EOLkits scanner processes files in your browser and flags selected related patterns in supported IaC and dependency files. File names and contents are not uploaded; bounded aggregate file and finding counts may be sent. It is not a complete source or AWS-account scan.

Prefer a 10-second check? Paste your config into the free AWS EOL checker. Pasted input is not uploaded; bounded first-party usage events may be sent.

Primary source: https://docs.aws.amazon.com/linux/al2023/ug/compare-with-al2.html

Inspect the $299 report sample and availability →