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-0957378a34aff1ea7 amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-0d8e27447ec2c8410 amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-0f6331da7f383f655 amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-09950a084b53d325b amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-0d4ae09ec9361d8ac amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-0e6e4c3da72a52873 amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-000b133338f7f4255 amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-082b5a644766e0e6f amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-052b172b0a9552df4 amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-006fd2260be98254c amzn2-ami-hvm-2.0.20190618-arm64-gp2
ami-0506d591e0c5ffa69 amzn2-ami-minimal-hvm-2.0.20190618-arm64-ebs
ami-a60378d7 amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-570c7726 amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-9e0c77ef amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-09d9edae5eb90d556 amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-0d8f6eb4f641ef691 amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-068c5847a3ffd96d7 amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-0f378490dca16e3f4 amzn2-ami-hvm-2.0.20190618-arm64-gp2
ami-05e2e33b2c7a2feee amzn2-ami-minimal-hvm-2.0.20190618-arm64-ebs
ami-00b882ac5193044e4 amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-0b898040803850657 amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-04c4b22bf59a18fe5 amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-0ad82a384c06c911e amzn2-ami-hvm-2.0.20190618-arm64-gp2
ami-07758d83078bf5e86 amzn2-ami-minimal-hvm-2.0.20190618-arm64-ebs
ami-0e9f62b664e24851b amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-056ee704806822732 amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-00c4c5c99df100e1d amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-068cf59f62e729bac amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-058943e7d9b9cabfb amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-06d3f63621141c807 amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-0534359810a211f57 amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-0adcddd3324248c4c amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-0eb1393275a1881f3 amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-0ec49d80d3f7f4bb0 amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-0cc293023f983ed53 amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-0fb76c470f37b4818 amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-0760711cfcdc67f2f amzn2-ami-hvm-2.0.20190618-arm64-gp2
ami-0d9f79610f034f7f3 amzn2-ami-minimal-hvm-2.0.20190618-arm64-ebs
ami-0f62aafc6efe8fd7b amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-0bbc25e23a7640b9b amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-0a3b59edf43c875be amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-0c5c15d56ae86fb8f amzn2-ami-hvm-2.0.20190618-arm64-gp2
ami-098f3909f8bc0555e amzn2-ami-minimal-hvm-2.0.20190618-arm64-ebs
ami-0eeea189e6caff27e amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-095ca789e0549777d amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-062865f5fefc994ff amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-0ebe863c3d16bca9d amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-0c3fd0f5d33134a76 amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-0a3ca415c97ce604b amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-09fa98900f9d542f6 amzn2-ami-hvm-2.0.20190618-arm64-gp2
ami-0d94404fdd2cbe7aa amzn2-ami-minimal-hvm-2.0.20190618-arm64-ebs
ami-043f9106e7f451340 amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-0d2692b6acea72ee6 amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-021f94faabd2740ff amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-058fa898e60a65408 amzn2-ami-hvm-2.0.20190618-arm64-gp2
ami-0262ebfbcf7a8d562 amzn2-ami-minimal-hvm-2.0.20190618-arm64-ebs
ami-0a9dfabb44798b3d5 amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-0dc96254d5535925f amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-06a7c95cb9fb911b6 amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-0dff809ca5daa2937 amzn2-ami-hvm-2.0.20190618-arm64-gp2
ami-0262ebfbcf7a8d562 amzn2-ami-minimal-hvm-2.0.20190618-arm64-ebs
ami-0a9dfabb44798b3d5 amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-0dc96254d5535925f amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-06a7c95cb9fb911b6 amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-0dff809ca5daa2937 amzn2-ami-hvm-2.0.20190618-arm64-gp2
ami-05128de810f799116 amzn2-ami-minimal-hvm-2.0.20190618-arm64-ebs
ami-8535bdfb amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-3f36be41 amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-1537bf6b amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-09edee4ed8a06196d amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-0ee933a7f81beb045 amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-0341484e54fe9b218 amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-0a049a078abd8ade3 amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-01f7527546b557442 amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-072469c4238f163b8 amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-0741a4c1757d23cff amzn2-ami-hvm-2.0.20190618-arm64-gp2
ami-039e04926c02f37bb amzn2-ami-minimal-hvm-2.0.20190618-arm64-ebs
ami-06de8caae8f243e81 amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-08b835182371dee58 amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-0b72c04859e0d9a51 amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-0a1974f50cd3c9b58 amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-0829e595217a759b9 amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-078f54bc4a13c940e amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-56a8d237 amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-e9a9d388 amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-1babd17a amzn2-ami-minimal-hvm-2.0.20190618-x86_64-ebs
ami-78db3a09 amzn2-ami-hvm-2.0.20190618-x86_64-ebs
ami-a2d938d3 amzn2-ami-hvm-2.0.20190618-x86_64-gp2
ami-7fda3b0e amzn2-ami-minimal-hvm-2.0.20190618-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