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 - 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-01237ee69c6ac72b2 amzn2-ami-hvm-2.0.20180924-x86_64-ebs
ami-04b9e417d2e6d3ba9 amzn2-ami-minimal-hvm-2.0.20180924-x86_64-ebs
ami-06962fe7164c1fe7b amzn2-ami-hvm-2.0.20180924-x86_64-gp2


ami-02e495c61af26da99 amzn2-ami-hvm-2.0.20180924-x86_64-gp2
ami-03c9d6480eaed2094 amzn2-ami-minimal-hvm-2.0.20180924-x86_64-ebs
ami-0d5a4818561b9f8db amzn2-ami-hvm-2.0.20180924-x86_64-ebs


ami-03c2e98030b68755e amzn2-ami-minimal-hvm-2.0.20180924-x86_64-ebs
ami-07554b92bf9172269 amzn2-ami-hvm-2.0.20180924-x86_64-ebs
ami-0af9707b77c10b811 amzn2-ami-hvm-2.0.20180924-x86_64-gp2


ami-08468dd791a828565 amzn2-ami-minimal-hvm-2.0.20180924-x86_64-ebs
ami-0b173ae0d9e71699a amzn2-ami-hvm-2.0.20180924-x86_64-gp2
ami-0d04d24ded1feab86 amzn2-ami-hvm-2.0.20180924-x86_64-ebs


ami-04bc5dd743aa55448 amzn2-ami-minimal-hvm-2.0.20180924-x86_64-ebs
ami-0e0db365e243c2806 amzn2-ami-hvm-2.0.20180924-x86_64-ebs
ami-0f67499750e64577a amzn2-ami-hvm-2.0.20180924-x86_64-gp2


ami-0ab2ee5402632dd38 amzn2-ami-minimal-hvm-2.0.20180924-x86_64-ebs
ami-0e2b2114bf2fac7d8 amzn2-ami-hvm-2.0.20180924-x86_64-gp2
ami-0f824ee742595b48a amzn2-ami-hvm-2.0.20180924-x86_64-ebs


ami-046ecac522f389bed amzn2-ami-minimal-hvm-2.0.20180924-x86_64-ebs
ami-0bda65ab87402e7ba amzn2-ami-hvm-2.0.20180924-x86_64-ebs
ami-0c612fea430136cb0 amzn2-ami-hvm-2.0.20180924-x86_64-gp2


ami-016f539860e828b5f amzn2-ami-hvm-2.0.20180924-x86_64-ebs
ami-0db937172f289d97e amzn2-ami-minimal-hvm-2.0.20180924-x86_64-ebs
ami-0e82b8b6afa30f2cd amzn2-ami-hvm-2.0.20180924-x86_64-gp2


ami-00f8b1192da5566c5 amzn2-ami-hvm-2.0.20180924-x86_64-ebs
ami-08c8c006d9418ad6e amzn2-ami-minimal-hvm-2.0.20180924-x86_64-ebs
ami-0eafb5ee12a2cbffc amzn2-ami-hvm-2.0.20180924-x86_64-gp2


ami-00aedada074b45e8b amzn2-ami-minimal-hvm-2.0.20180924-x86_64-ebs
ami-0135b45434a538069 amzn2-ami-hvm-2.0.20180924-x86_64-gp2
ami-074882b79a16e2e6e amzn2-ami-hvm-2.0.20180924-x86_64-ebs


ami-034827c3c280ecd23 amzn2-ami-minimal-hvm-2.0.20180924-x86_64-ebs
ami-07e5d89c9e173f360 amzn2-ami-hvm-2.0.20180924-x86_64-gp2
ami-09d167a4d6437e893 amzn2-ami-hvm-2.0.20180924-x86_64-ebs


ami-00d30d21f15fff348 amzn2-ami-hvm-2.0.20180924-x86_64-ebs
ami-0358590e25437b80e amzn2-ami-minimal-hvm-2.0.20180924-x86_64-ebs
ami-0e4c9b46b89ddd90c amzn2-ami-hvm-2.0.20180924-x86_64-gp2


ami-0204395014da79b10 amzn2-ami-graphics-hvm-2.0.20180924-x86_64-gp2
ami-028163689b209d39a amzn2-ami-minimal-hvm-2.0.20180924-x86_64-ebs
ami-0aa9b70a12f8a24aa amzn2-ami-hvm-2.0.20180924-x86_64-ebs
ami-0e6d2e8684d4ccb3e amzn2-ami-hvm-2.0.20180924-x86_64-gp2


ami-069cb9f31cc4ff897 amzn2-ami-minimal-hvm-2.0.20180924-x86_64-ebs
ami-0785b10e84f9dbd4f amzn2-ami-hvm-2.0.20180924-x86_64-gp2
ami-0b02fd40659a77a44 amzn2-ami-hvm-2.0.20180924-x86_64-ebs


ami-01eb1709d6ad69035 amzn2-ami-hvm-2.0.20180924-x86_64-gp2
ami-03b9136a181f721ac amzn2-ami-minimal-hvm-2.0.20180924-x86_64-ebs
ami-0bcede71dd7fefe74 amzn2-ami-hvm-2.0.20180924-x86_64-ebs


ami-049da110c2081343c amzn2-ami-hvm-2.0.20180924-x86_64-ebs
ami-0b241ae54d1d95744 amzn2-ami-minimal-hvm-2.0.20180924-x86_64-ebs
ami-0fcd5791ba781e98f amzn2-ami-hvm-2.0.20180924-x86_64-gp2

Learn more about Amazon Linux 2

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