Instead of guessing which version of RHEL a particular distro is based off, just run:

rpm -E %{rhel}

For Amazon Linux 2, this will give you 7.

Answer from Danila Vershinin on serverfault.com
๐ŸŒ
AWS
docs.aws.amazon.com โ€บ amazon linux 2 โ€บ release notes โ€บ amazon linux 2 release notes
Amazon Linux 2 release notes - Amazon Linux 2
Find the release notes for Amazon Linux 2, which provide information about new features, updates, and fixes.
๐ŸŒ
AWS Marketplace
aws.amazon.com โ€บ marketplace โ€บ pp โ€บ prodview-zc4x2k7vt6rpu
AWS Marketplace: Amazon Linux 2 AMI (HVM), SSD Volume Type (64-bit x86) Operating System
The Amazon Linux 2 AMI is a stable, secure, and high-performance Linux environment optimized for the AWS Cloud. With long-term support and regular maintenance, this Amazon Linux 2 AMI provides the latest features for enterprise-level applications while ensuring compatibility with existing ...
Discussions

Best way to find AMI ID of Amazon Linux 2 for each region for a CloudFormation map?
https://aws.amazon.com/blogs/compute/query-for-the-latest-amazon-linux-ami-ids-using-aws-systems-manager-parameter-store/ More on reddit.com
๐ŸŒ r/aws
5
1
September 18, 2018
Migrating an EC2 Amazon Machine Image (AMI) from Amazon Linux 2 to the latest Amazon Linux version 2023
Hello everyone I have issues with an existing Amazon Linux 2 AMI, cannot install node version 18 or above. I get the following error. node: /lib64/libm.so.6: version `GLIBC_2.27' not found (requ... More on repost.aws
๐ŸŒ repost.aws
1
0
December 25, 2023
amazon web services - AWS EC2 : upgrade from AMI 1 to AMI 2 - Stack Overflow
Is-there an easy way to upgrade from Amazon Linux AMI to Amazon Linux 2 AMI, or do I have to create a new instance and do again all my server setup ? Thanks for your feedback, More on stackoverflow.com
๐ŸŒ stackoverflow.com
Amazon Linux 2025
Is there any info on this? They said a new version would be released every two years, and AWS Linux 2023 was released twoโ€ฆ More on reddit.com
๐ŸŒ r/aws
46
68
March 25, 2025
People also ask

Optimized performance

Amazon Linux 2 includes support for the latest Amazon Elastic Compute Cloud (Amazon EC2) instance capabilities and is tuned for enhanced performance. It includes packages that help ease integration with other AWS services.

๐ŸŒ
aws.amazon.com
aws.amazon.com โ€บ products โ€บ compute โ€บ amazon linux 2
Amazon Linux 2
Enhanced developer productivity

Amazon Linux 2 is offered as a virtual machine and container image for on-premises development and testing. Developers can speed up their application development by building, testing, and integrating on the same Linux distribution that is used in their production environment.

๐ŸŒ
aws.amazon.com
aws.amazon.com โ€บ products โ€บ compute โ€บ amazon linux 2
Amazon Linux 2
Large partner network

Amazon Linux 2 has a rapidly growing community of AWS Partners that includes independent software vendors (ISVs). You can install and run many popular partner applications.

๐ŸŒ
aws.amazon.com
aws.amazon.com โ€บ products โ€บ compute โ€บ amazon linux 2
Amazon Linux 2
๐ŸŒ
AWS
docs.aws.amazon.com โ€บ amazon linux โ€บ user guide โ€บ al2 on amazon ec2
AL2 on Amazon EC2 - Amazon Linux 2
Launch Amazon EC2 instance with AL2 AMIFind the latest AL2 AMI using Systems ManagerConnect to an Amazon EC2 instanceAL2 AMI boot modePackage repository ยท AL2 is no longer the current version of Amazon Linux. AL2023 is the successor to AL2.
๐ŸŒ
Amazon Web Services
aws.amazon.com โ€บ products โ€บ compute โ€บ amazon linux 2
Amazon Linux 2
3 weeks ago - Amazon Linux 2 offers long-term support. Developers, IT administrators, and ISVs get the predictability and stability of a long-term support (LTS) release, but without compromising access to the latest versions of popular software packages.
๐ŸŒ
AWS
docs.aws.amazon.com โ€บ amazon linux โ€บ user guide โ€บ using al2023 on aws โ€บ al2023 on amazon ec2
AL2023 on Amazon EC2 - Amazon Linux 2023
1 month ago - Start using AL2023 by setting up a new instance in the AWS CLI using the CloudFormation AMI ID parameter.
๐ŸŒ
End of Life Date
endoflife.date โ€บ amazon-linux
Amazon Linux | endoflife.date
2 weeks ago - AWS announced Amazon Linux 2023 2 as a successor to Amazon Linux 2, which uses Fedora as the upstream. It reached GA (General Availability) in March 2023. Every major version release is supported by Standard Support for 2 years, followed by ...
Find elsewhere
๐ŸŒ
Amazon Web Services
aws.amazon.com โ€บ amazon linux ami
AWS | Amazon Linux AMI
3 weeks ago - The Amazon Linux AMI is a supported and maintained Linux image provided by Amazon Web Services for use on Amazon Elastic Compute Cloud (Amazon EC2). It is designed to provide a stable, secure, and high performance execution environment for applications running on Amazon EC2. It supports the latest ...
๐ŸŒ
AWS re:Post
repost.aws โ€บ fr โ€บ questions โ€บ QUIUVP684wR7mb_pkUSY42Sg โ€บ migrating-an-ec2-amazon-machine-image-ami-from-amazon-linux-2-to-the-latest-amazon-linux-version-2023
Migrating an EC2 Amazon Machine Image (AMI) from Amazon Linux 2 to the latest Amazon Linux version 2023 | AWS re:Post
December 25, 2023 - It is not possible to directly upgrade from Amazon Linux 2 to Amazon Linux 2023, so basically you need to migrate by building Amazon Linux 2023 from scratch. For example, it is necessary to identify the middleware that is currently installed ...
๐ŸŒ
Amazonaws
awsmarketplace.amazonaws.cn โ€บ marketplace โ€บ pp โ€บ prodview-mu7xmkzhwv4rc
Marketplace: Amazon Linux 2 AMI (HVM) - Kernel 4.14, SSD Volume Type (64-bit x86)
Amazon Linux 2 has no additional ... It provides a performance-optimized Linux kernel 4.14 for Amazon EC2, systemd 219, GCC 7.3, Glibc 2.26, Binutils 2.29.1, and the latest packages through additional sections...
๐ŸŒ
HashiCorp
hashicorp.com โ€บ en โ€บ blog โ€บ hashicorp-terraform-supports-amazon-linux-2
HashiCorp Terraform Supports Amazon Linux 2
AWS announced general availability of their new Amazon Linux 2 operating system. HashiCorp Terraform offers support for Amazon Linux 2 when provisioning or managing AWS infrastructure.
๐ŸŒ
nixCraft
cyberciti.biz โ€บ nixcraft โ€บ howto โ€บ amazon cloud computing โ€บ how to check amazon linux version (ec2 instance)
How to Check Amazon Linux Version (EC2 Instance) - nixCraft
April 13, 2023 - Always use AMI 2 or AMI 3 for production workloads. NAME="Amazon Linux AMI" VERSION="2018.03" ID="amzn" ID_LIKE="rhel fedora" VERSION_ID="2018.03" PRETTY_NAME="Amazon Linux AMI 2018.03" ANSI_COLOR="0;33" CPE_NAME="cpe:/o:amazon:linux:2018.03:ga" ...
๐ŸŒ
AWS re:Post
repost.aws โ€บ knowledge-center โ€บ ec2-linux-update-security-patches
Update EC2 Linux with the latest updates | AWS re:Post
1 month ago - Important: Amazon Linux 2 (AL2) will reach its end of life on June 30, 2026. After end of support, AL2 won't receive security updates or produce new patches. If you run AL2, then migrate to Amazon Linux 2023 (AL2023) before the end-of-support date.
๐ŸŒ
Medium
gmusumeci.medium.com โ€บ how-to-update-an-ec2-machine-with-amazon-linux-2-dd490c3f8ef8
How To Update an EC2 Machine with Amazon Linux 2 | by Guillermo Musumeci | Medium
March 28, 2022 - Kernel live patches are available for Amazon Linux 2 with kernel version 4.14.165โ€“131.185 or later.
๐ŸŒ
Javatpoint
javatpoint.com โ€บ amazon-linux-2
Amazon Linux 2 - Javatpoint
Amazon Linux 2 is the latest and one of the most popular distributions provided by Amazon web service, especially for the cloud environment. Based upon the Amazon Linux AMI, Amazon Linux 2 offers further improved features and long-term support making it the first pick for developers and enterprises ...
๐ŸŒ
Groots Learn
resource.groots.in โ€บ home โ€บ security update -upgrade amazon linux 1 to amazon linux 2
Security Update -Upgrade Amazon Linux 1 to Amazon Linux 2 - Groots Learn
July 22, 2024 - Updated 13 January 2023 โ€“ Amazon Linux 1 (Amazon Linux AMI) extended maintenance support period ends on December 31, 2023. Amazon Linux 1 goes End of Life (EOL). Amazon has also released Amazon Linux 2022. You have the option to upgrade to Amazon Linux 2 or Amazon Linux 2022.
๐ŸŒ
Salesforce-sites
qiagen.my.salesforce-sites.com โ€บ KnowledgeBase โ€บ articles โ€บ Knowledge โ€บ How-to-build-an-Amazon-Linux-2-AMI-for-Server-on-the-Cloud
How to build an Amazon Linux 2 AMI for Server on the Cloud
OmicSoft Cloud uses customized Amazon Linux-based or Ubuntu-based Amazon Machine Images (AMIs) as the template for creating compute instances for running cloud-based analyses. These AMIs require a few key components, including the Oshell engine, packages for transferring data to and from AWS ...