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 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-0957b42d2e60d8654 amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-08847abae18baa040 amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-0320c9ebfd2c0e7c5 amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

ap-northeast-2

ami-0c5cc56ce20a39938 amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-012566705322e9a8e amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-039081498f8e4543b amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

ap-northeast-3

ami-0c376da6d144c5890 amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-00f7ef6bf92e8f916 amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-0c7d730c4b5adc697 amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

ap-south-1

ami-0a6bfb6ec493fec48 amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-00b6a8a2bd28daf19 amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-0e71e78ca871f967c amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

ap-southeast-1

ami-00cc30e1735b3268b amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-01da99628f381e50a amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-09d8b953d62ea6612 amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

ap-southeast-2

ami-0b1a7767bce29a01a amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-00e17d1165b9dd3ec amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-09ea02cf884725fb9 amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

ca-central-1

ami-cd1b96a9 amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-ce1b96aa amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-351b9651 amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

cn-north-1

ami-9906def4 amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-9a06def7 amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-b838e0d5 amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

cn-northwest-1

ami-bc6a7dde amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-116a7d73 amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-126a7d70 amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

eu-central-1

ami-0bfa8b98c4ff06eed amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-0f5dbc86dd9cbf7a8 amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-0b6439baacf8f052d amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

eu-west-1

ami-020d43be7e7841de4 amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-0bdb1d6c15a40392c amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-0251c5c428c680573 amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

eu-west-2

ami-8f7481e8 amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-e1768386 amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-c10affa6 amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

eu-west-3

ami-06879bb67c688e7eb amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-06340c8c12baa6a09 amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-0fe0a4e60cbbd3a3b amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

sa-east-1

ami-0f57b63a449295354 amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-0ad7b0031d41ed4b9 amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-0cbf6ff77e71a01cf amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

us-east-1

ami-0289eddf232acb27e amzn2-ami-graphics-hvm-2.0.20180810-x86_64-gp2

ami-00b94673edfccb7ca amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-04681a1dbd79675a5 amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-0f686c64c5fb9828c amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

us-east-2

ami-05ea59e90e2c10a56 amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-0cf31d971a3ca20d6 amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-0cb0d13cc967ec109 amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

us-gov-west-1

ami-ea7be78b amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-8578e4e4 amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-b168f4d0 amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

us-west-1

ami-02b2f7285ba6579ed amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-0782017a917e973e7 amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-01bf94252021538dc amzn2-ami-minimal-hvm-2.0.20180810-x86_64-ebs

 

us-west-2

ami-99dafbe1 amzn2-ami-hvm-2.0.20180810-x86_64-ebs

ami-6cd6f714 amzn2-ami-hvm-2.0.20180810-x86_64-gp2

ami-84d9f8fc amzn2-ami-minimal-hvm-2.0.20180810-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