How To Install system-release.x86_64 on Amazon Linux 2

In this tutorial we learn how to install system-release.x86_64 in Amazon Linux 2. system-release.x86_64 is Amazon Linux release files

Introduction

In this tutorial we learn how to install system-release.x86_64 on Amazon Linux 2.

What is system-release.x86_64

Amazon Linux release files

We can use yum to install system-release.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install system-release.x86_64.

Install system-release.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install system-release.x86_64 using yum by running the following command:

sudo yum -y install system-release.x86_64

How To Uninstall system-release.x86_64 on Amazon Linux 2

To uninstall only the system-release.x86_64 package we can use the following command:

sudo yum remove system-release.x86_64

system-release.x86_64 Package Contents on Amazon Linux 2

/etc/cloud/cloud.cfg.d/10_aws_yumvars.cfg
/etc/issue
/etc/issue.net
/etc/os-release
/etc/pki/rpm-gpg
/etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-linux-2
/etc/rpm/macros.dist
/etc/system-release
/etc/system-release-cpe
/etc/update-motd.d/30-banner
/etc/update-motd.d/70-available-updates
/etc/yum.repos.d/amzn2-core.repo
/etc/yum/vars/amazonlinux
/etc/yum/vars/awsdomain
/etc/yum/vars/awsproto
/etc/yum/vars/awsregion
/etc/yum/vars/product
/etc/yum/vars/target
/usr/lib/systemd/system-preset/85-display-manager.preset
/usr/lib/systemd/system-preset/90-default.preset
/usr/sbin/amazon-linux-https
/usr/share/doc/system-release/GPL

References

Summary

In this tutorial we learn how to install system-release.x86_64 on Amazon Linux 2 using yum.