Product details are accessible from the Amazon Linux 2 page

Amazon Linux 2 is the next generation of Amazon Linux, a Linux server operating system from Amazon Web Services (AWS). It is designed to provide a secure, stable, and high performance execution environment for customers to develop and run a wide variety of cloud and enterprise applications. With Amazon Linux 2, customers get an application environment that offers long term support with access to the latest innovations in the Linux community. Amazon Linux 2 is provided at no additional charge.

 

Amazon Linux 2 - 5/23/2019 Update

 

NVIDIA GPU support: Amazon Linux 2 AMIs with NVIDIA GPU drivers pre-installed and pre-configured for use on P and G instance families are available on AWS Marketplace.

 

Amazon Linux 2 - 05/14/2019 Update

 

A new systemd service is added to launch on boot. The service will submit the host public keys for identity validation to support an upcoming feature for connecting to EC2 instances.

Amazon Linux 2 - 03/13/2019 Update

This update fixes incorrect permissions for some system files https://alas.aws.amazon.com/AL2/ALAS-2019-1175.html

Amazon Linux 2 - 11/26/2018 Update

A1 support: Amazon Linux 2 is supported for use on A1 instances

Amazon Linux 2 - 11/19/2018 Update

ENA driver updates:

An ENA driver update that introduces Low Latency Queues (LLQ) for improved average and tail latencies. The update also adds support for receive checksum offload that improves CPU utilization.

Amazon Linux 2 - 10/31/2018 Update

OpenSSH daemon configuration file /etc/ssh/sshd_config updates

The OpenSSH daemon configuration file /etc/ssh/sshd_config has been updated. The AuthorizedKeysCommand value is configured to point to a customized script, /opt/aws/bin/curl_authorized_keys to support an upcoming feature to read SSH public keys; from the EC2 instance metadata during the SSH connection process.

 

Amazon Linux 2 - 9/25/2018 Update

Support for 32-bit Libraries: Amazon Linux 2 now supports 32-bit libraries and compatibility packages, which enables customers to run 32-bit applications on Amazon Linux 2. You can run 'yum update' on an Amazon Linux 2 instance to get the full 32-bit support. An updated Amazon Linux 2 AMI with full 32-bit support will also be available in the coming days.

Bug Fixes and Package Updates: This release also contains bug fixes and updates for several Amazon Linux 2 packages from their upstream projects.

Amazon Linux 2 provides the systemd service and systems manager (in place of System V init). As a result, applications running on Amazon Linux AMI may require changes to run on Amazon Linux 2. Amazon Elastic Compute Cloud (Amazon EC2) instances running Amazon Linux will not be upgradeable to Amazon Linux 2 through rolling upgrade mechanisms.

Amazon Linux 2 uses the systemd 219 init system to bootstrap userspace and manage system processes. It is available as /sbin/init and replaces the System V-style init system that was available in the previous generation of Amazon Linux. As a result, initscripts should no longer exist in /etc/init.d. systemctl {start|stop|restart} SERVICE_NAME.service should be used in its place. Additionally, service SERVICE_NAME {start|stop|restart} is compatible with both Amazon Linux AMI and Amazon Linux 2.

The extras mechanism provides the latest application software on a stable base of Amazon Linux 2 helping you balance operating system stability and software “freshness”. Extras provides topics to select AWS curated software bundles. Each topic contains all the dependencies required for the software to install and run on Amazon Linux 2.

Extras command to list the available topics:
$ amazon-linux-extras

Extras command to install a topic:
$ sudo amazon-linux-extras install <topic name>

Example:
$ sudo amazon-linux-extras install rust1

The extras channel provides an AWS curated list of rapidly evolving technologies. These technologies may be updated more frequently than they would otherwise be in the "core" repositories of Amazon Linux 2.

Over time, these technologies will continue to mature and stabilize and may eventually be added to the Amazon Linux 2 "core" channel to which the Amazon Linux 2 Long Term Support policies apply.

The package for Docker is only available through extras and is enabled by default. When new versions of Docker are released, support will be provided only for the most current stable packages.

Amazon Linux 2 comes with GCC 7.3, Glibc 2.26, and Binutils 2.29.1

In Amazon Linux 2, /bin, /sbin, /lib, and /lib64 are symlinks to /usr/bin, /usr/sbin, /usr/lib, and /usr/lib64, respectively. Packages that have Requires on specific binaries in /bin, will not resolve. This can be mitigated using the following logic for RPM package managment:

%if 0%{?amzn} == 1
Requires: /bin/grep
%else
Requires: /usr/bin/grep
%endif

Cloud-init has been updated to version 18.2 to handle early initialization of the operating system. It sets the default locale, instance hostname, generates SSH private keys, adds SSH keys into the user’s .ssh/authorized_keys entry, establishes ephemeral mount points, and configures network devices.

Amazon Linux 2 virtual machine images are currently available for VMware ESXi, Microsoft Hyper-V, KVM, and Oracle VM VirtualBox virtualization solutions for development and testing. These can be obtained here. After downloading the image, follow the Amazon Linux documentation to get started.

The minimum system requirement for running Amazon Linux 2 in a virtual machine instance is 512 MB of memory and 1 virtual CPUs.

AWS Systems Manager Patch Manager support Amazon Linux 2. This enables automated patching of fleets of Amazon Linux 2 EC2 instances and on-premises virtual machines (VMs). It can scan instances for missing patches and automatically install all missing patches.

To upgrade from Amazon Linux 2 LTS Candidate 2 to the LTS version of Amazon Linux 2 run the following commands:

$ sudo yum update system-release

$ sudo yum update cloud-init

$ sudo yum clean all

$ sudo yum update

$ sudo reboot

ap-northeast-1
ami-06fa14d97ff163331 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-00d101850e971728d amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-01b51ea432a73dc16 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
ap-northeast-2
ami-048ad67b05d09e8ae amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-08ab3f7e72215fe91 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-04d32a6891383551b amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
ap-northeast-1
ami-06fa14d97ff163331 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-00d101850e971728d amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-01b51ea432a73dc16 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
ap-northeast-2
ami-048ad67b05d09e8ae amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-08ab3f7e72215fe91 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-04d32a6891383551b amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
ap-northeast-3
ami-0974423519d717579 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-018aec30b63a5a9aa amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-0d163a2dd5734711b amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
ap-south-1
ami-0a6994bbf532d5707 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-00e782930f1c3dbc7 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-051dfee3fa484ecce amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
ap-southeast-1
ami-058b68a584e65459e amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0b5a47f8865280111 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-06c1eb7db5648aab6 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
ap-southeast-2
ami-0b32b57ccd633703b amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0fb7513bcdc525c3b amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-090fb4022f74aaa40 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
ca-central-1
ami-0626a6dab976ebdf6 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-08a9b721ecc5b0a53 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-08defdd9a1985548b amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
eu-central-1
ami-0db770f2aeada318b amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0ebe657bc328d4e82 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-0ad7775b94efa5010 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
eu-north-1
ami-b9bd35c7 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-1fb13961 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-cdbd35b3 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
eu-west-1
ami-08c5dd5d585629c8f amzn2-ami-hvm-2.0.20190508-arm64-gp2
ami-089bc6d73f5439d41 amzn2-ami-minimal-hvm-2.0.20190508-arm64-ebs
ami-0bd53c6418f1f0d97 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-030dbca661d402413 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-09f30581dc4996ce0 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
eu-west-2
ami-018266941e5f28891 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0009a33f033d8b7b6 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-0f834f255c491ea1d amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
eu-west-3
ami-0b8ce29f1b2e91d1d amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0ebb3a801d5fb8b9b amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-031785a1ebb997c3c amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
sa-east-1
ami-0062b19bc453f840c amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-058141e091292ecf0 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-04596c94a828fee80 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
us-east-1
ami-0599cf11bd7f06277 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0c6b1d09930fac512 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-0804f7afcaa5e8db1 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
ami-0dd387866de2504e4 amzn2-ami-hvm-2.0.20190508-arm64-gp2
ami-0fe343aab1a91e683 amzn2-ami-minimal-hvm-2.0.20190508-arm64-ebs
 
us-east-2
ami-0c525e8a334d23f98 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0ebbf2179e615c338 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-02a1c3254fa5e8ad2 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
ami-0d3ebe261ec589631 amzn2-ami-hvm-2.0.20190508-arm64-gp2
ami-030878f7c21c805b7 amzn2-ami-minimal-hvm-2.0.20190508-arm64-ebs
 
us-west-1
ami-055e0aa8d1ea30788 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-015954d5e5548d13b amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-0f72eb2436f94d25e amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
us-west-2
ami-068a5e9c87370be8b amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0cb72367e98845d43 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-09abf423143ead880 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
ami-05348ee4dc634ca1c amzn2-ami-hvm-2.0.20190508-arm64-gp2
ami-06269ab8440b5d655 amzn2-ami-minimal-hvm-2.0.20190508-arm64-ebs
 
cn-north-1
ami-05e6d0221e7cd29b5 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-06afd1293c8d8c768 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0c6d16977764f034e amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
cn-northwest-1
ami-0454e64e2442de58d amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
ami-05b8c8b4d71ac048d amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-05e428c8642505f7a amzn2-ami-hvm-2.0.20190508-x86_64-gp2
 
us-gov-east-1
ami-38ae4f49 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-7ab1500b amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
ami-f1af4e80 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
 
us-gov-west-1
ami-75a8d414 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-7dabd71c amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-8aaed2eb amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
ap-east-1
ami-4cef973d amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
ami-c7ef97b6 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-6fe0981e amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-0974423519d717579 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-018aec30b63a5a9aa amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-0d163a2dd5734711b amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
ap-south-1
ami-0a6994bbf532d5707 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-00e782930f1c3dbc7 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-051dfee3fa484ecce amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
ap-southeast-1
ami-058b68a584e65459e amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0b5a47f8865280111 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-06c1eb7db5648aab6 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
ap-southeast-2
ami-0b32b57ccd633703b amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0fb7513bcdc525c3b amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-090fb4022f74aaa40 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
ca-central-1
ami-0626a6dab976ebdf6 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-08a9b721ecc5b0a53 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-08defdd9a1985548b amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
eu-central-1
ami-0db770f2aeada318b amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0ebe657bc328d4e82 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-0ad7775b94efa5010 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
eu-north-1
ami-b9bd35c7 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-1fb13961 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-cdbd35b3 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
eu-west-1
ami-08c5dd5d585629c8f amzn2-ami-hvm-2.0.20190508-arm64-gp2
ami-089bc6d73f5439d41 amzn2-ami-minimal-hvm-2.0.20190508-arm64-ebs
ami-0bd53c6418f1f0d97 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-030dbca661d402413 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-09f30581dc4996ce0 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
eu-west-2
ami-018266941e5f28891 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0009a33f033d8b7b6 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-0f834f255c491ea1d amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
eu-west-3
ami-0b8ce29f1b2e91d1d amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0ebb3a801d5fb8b9b amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-031785a1ebb997c3c amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
sa-east-1
ami-0062b19bc453f840c amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-058141e091292ecf0 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-04596c94a828fee80 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
us-east-1
ami-0599cf11bd7f06277 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0c6b1d09930fac512 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-0804f7afcaa5e8db1 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
ami-0dd387866de2504e4 amzn2-ami-hvm-2.0.20190508-arm64-gp2
ami-0fe343aab1a91e683 amzn2-ami-minimal-hvm-2.0.20190508-arm64-ebs
 
us-east-2
ami-0c525e8a334d23f98 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0ebbf2179e615c338 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-02a1c3254fa5e8ad2 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
ami-0d3ebe261ec589631 amzn2-ami-hvm-2.0.20190508-arm64-gp2
ami-030878f7c21c805b7 amzn2-ami-minimal-hvm-2.0.20190508-arm64-ebs
 
us-west-1
ami-055e0aa8d1ea30788 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-015954d5e5548d13b amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-0f72eb2436f94d25e amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
us-west-2
ami-068a5e9c87370be8b amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0cb72367e98845d43 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-09abf423143ead880 amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
ami-05348ee4dc634ca1c amzn2-ami-hvm-2.0.20190508-arm64-gp2
ami-06269ab8440b5d655 amzn2-ami-minimal-hvm-2.0.20190508-arm64-ebs
 
cn-north-1
ami-05e6d0221e7cd29b5 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-06afd1293c8d8c768 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-0c6d16977764f034e amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
cn-northwest-1
ami-0454e64e2442de58d amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
ami-05b8c8b4d71ac048d amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-05e428c8642505f7a amzn2-ami-hvm-2.0.20190508-x86_64-gp2
 
us-gov-east-1
ami-38ae4f49 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-7ab1500b amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
ami-f1af4e80 amzn2-ami-hvm-2.0.20190508-x86_64-gp2
 
us-gov-west-1
ami-75a8d414 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-7dabd71c amzn2-ami-hvm-2.0.20190508-x86_64-gp2
ami-8aaed2eb amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
 
ap-east-1
ami-4cef973d amzn2-ami-minimal-hvm-2.0.20190508-x86_64-ebs
ami-c7ef97b6 amzn2-ami-hvm-2.0.20190508-x86_64-ebs
ami-6fe0981e amzn2-ami-hvm-2.0.20190508-x86_64-gp2
eu-west-1
ami-08c5dd5d585629c8f amzn2-ami-hvm-2.0.20190508-arm64-gp2
ami-089bc6d73f5439d41 amzn2-ami-minimal-hvm-2.0.20190508-arm64-ebs
 
us-east-1
ami-0dd387866de2504e4 amzn2-ami-hvm-2.0.20190508-arm64-gp2
ami-0fe343aab1a91e683 amzn2-ami-minimal-hvm-2.0.20190508-arm64-ebs
 
us-east-2
ami-0d3ebe261ec589631 amzn2-ami-hvm-2.0.20190508-arm64-gp2
ami-030878f7c21c805b7 amzn2-ami-minimal-hvm-2.0.20190508-arm64-ebs
 
us-west-2
ami-05348ee4dc634ca1c amzn2-ami-hvm-2.0.20190508-arm64-gp2
ami-06269ab8440b5d655 amzn2-ami-minimal-hvm-2.0.20190508-arm64-ebs

Learn more about Amazon Linux 2

Visit the product detail page
Ready to get started?
Sign up
Have more questions?
Contact us