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 - 7/18/2019 Update


An AWS-optimized Linux kernel 4.19 is now available in Amazon Linux 2 Extras channel in addition to the 4.14 kernel that receives long-term support. You can install and use the 4.19 kernel by running sudo amazon-linux-extras install kernel-ng and rebooting your instance.


Amazon Linux 2 - 6/27/2019 Update


Amazon EC2 Instance Connect is enabled by default


EC2 Instance Connect provides a simple and secure way to connect to your instances using Secure Shell (SSH). To disable the feature follow the steps to Uninstall EC2 Instance Connect.


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

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>

$ 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
Requires: /usr/bin/grep

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

ami-ed9add9c amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-33a7e042 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-b1a7e0c0 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-035e7f804dad9c65b amzn2-ami-hvm-2.0.20200304.0-arm64-gp2
ami-0d0fb504e1947603c amzn2-ami-minimal-hvm-2.0.20200304.0-arm64-ebs
ami-0c6f9336767cd9243 amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-052652af12b58691f amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-02eb38302f5f6ea15 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-00aa2a0d003614f3d amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-0db78afd3d150fc18 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-0b58e7cc068b3be88 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-0f0d3b24646fd68da amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-075b14c8e2f90fd84 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-0885d2f340eba058d amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-0292503f80fe49021 amzn2-ami-hvm-2.0.20200304.0-arm64-gp2
ami-09e535032b747eca6 amzn2-ami-minimal-hvm-2.0.20200304.0-arm64-ebs
ami-08c90bce7369e0949 amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-03b5297d565ef30a6 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-0dd45200cd5f8ed37 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-09172771b47695ce2 amzn2-ami-hvm-2.0.20200304.0-arm64-gp2
ami-031e53fc36f7d0e24 amzn2-ami-minimal-hvm-2.0.20200304.0-arm64-ebs
ami-0bb345aaaa7e443e1 amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-0cbc6aae997c6538a amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-02b9c1434ff123148 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-0a154418abe567821 amzn2-ami-hvm-2.0.20200304.0-arm64-gp2
ami-039e936bfee90fd41 amzn2-ami-minimal-hvm-2.0.20200304.0-arm64-ebs
ami-055a70ac36a232aeb amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-08fdde86b93accf1c amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-0a831b2338b18d799 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-0b7414650236436d0 amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-0bf54ac1b628cf143 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-046f0abc3a14b3bdf amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-0b1dc5ca0f6b31f65 amzn2-ami-hvm-2.0.20200304.0-arm64-gp2
ami-0273da8a173729a81 amzn2-ami-minimal-hvm-2.0.20200304.0-arm64-ebs
ami-0f4734c7a40e8d47e amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-0ec1ba09723e5bfac amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-074fd79fa0aef5048 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-02c47a9f0fb1cd87e amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-0f630db6194a81ad0 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-05fb7c60c4b237d19 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-049456450f2873c0a amzn2-ami-hvm-2.0.20200304.0-arm64-gp2
ami-0f9d2ea7933042846 amzn2-ami-minimal-hvm-2.0.20200304.0-arm64-ebs
ami-056da6aa694a900ad amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-04d5cc9b88f9d1d39 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-056b3c31f924ae1e5 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-0aea84af8b6a3ed42 amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-0cb790308f7591fa6 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-03f47f4dbd01cf4cb amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-0401407d6841a3a8a amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-07eda9385feb1e969 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-0222e4485b3b95830 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-0eacd1fe3347db37a amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-05613911cb72781b8 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-029429b35ba09d155 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-0f5f050a5821b9c9c amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-0b032e878a66c3b68 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-042feb834882e77a3 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-0f90a34c9df977efb amzn2-ami-hvm-2.0.20200304.0-arm64-gp2
ami-01edc7b8cebc1e51e amzn2-ami-minimal-hvm-2.0.20200304.0-arm64-ebs
ami-00b99db251c4b691a amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-0fc61db8544a617ed amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-04a8e0df11e0026d5 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-03201f374ab66a26e amzn2-ami-hvm-2.0.20200304.0-arm64-gp2
ami-0069034086b6a5074 amzn2-ami-minimal-hvm-2.0.20200304.0-arm64-ebs
ami-006fa13c7887dc68c amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-0e01ce4ee18447327 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-0256e161c7d770dbf amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-03d58f725e0a129b6 amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-09a7fe78668f1e2c0 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-0e4fc3da4b95aa587 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-081c3775f479265ea amzn2-ami-hvm-2.0.20200304.0-arm64-gp2
ami-09648a5098f3c1aa5 amzn2-ami-minimal-hvm-2.0.20200304.0-arm64-ebs
ami-0f1f7576097247b28 amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-0ce21b51cb31a48b8 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-0e50648bfc0a7d87a amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-01c6365773222b912 amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-075e747be97c43817 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-0e8d932f0b8f9d7a9 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-0ea6b28fc85e94f79 amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-0e08e7c3821193844 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-07762fd0b995c6501 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-7d1bf60c amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-731af702 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-2e14f95f amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs
ami-40537821 amzn2-ami-hvm-2.0.20200304.0-x86_64-ebs
ami-595c7738 amzn2-ami-hvm-2.0.20200304.0-x86_64-gp2
ami-56537837 amzn2-ami-minimal-hvm-2.0.20200304.0-x86_64-ebs

Learn more about Amazon Linux 2

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