Open
Description
Current package manager and install scripts look here to determine RHEL OS version:
cat /etc/redhat-release
With Amazon transitioning to Fedora for their linux instances (AWS are deprecating the current version of Linux mid next year. 2023), location no longer exists. Instead the following should be checked in both the redhat package manager scripts as well as install:
VERSION="2022"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2022"
PLATFORM_ID="platform:al2022"
PRETTY_NAME="Amazon Linux 2022"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2022"
HOME_URL="https://amazonlinux.com/"
The scripts install on x64, but not arm64.