11

I was told we recently created a new Amazon Linux instance with the latest and greatest (Version 2017.3–01) . I'm trying to find out if it is based on CentOS 7 (because that is the only version that supports installation of Google Chrome). I have run

[davea@mymachine ~]$ uname -a
Linux mymachine 4.9.32-15.41.amzn1.x86_64 #1 SMP Thu Jun 22 06:20:54 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

but I still can't tell what version of CentOS my Amazon Linux distro is based on.

Edit: per suggestion given, here is the output of the cat command

[davea@mymachine ~]$ sudo cat /etc/*release*
[sudo] password for davea:
NAME="Amazon Linux AMI"
VERSION="2017.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2017.03"
PRETTY_NAME="Amazon Linux AMI 2017.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2017.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
Amazon Linux AMI release 2017.03
cpe:/o:amazon:linux:2017.03:ga
5

Found this on server fault. https://serverfault.com/questions/798427/what-linux-distribution-is-the-amazon-linux-ami-based-on

To sum up: Quote from AWS folks :

The Amazon Linux AMI is not based on any one upstream Linux project. That said, one of the goals of the most current Amazon Linux AMI (2013.09) is to be as compatible as possible with RHEL 6. If there are places in which you find that we are not, please let us know so that we can investigate further."

3
  • Where do I find that information (e.g. Amazon Linux AMI 2013.09) from my terminal? – Dave Aug 18 '17 at 13:48
  • 1
    @Dave it's from the os-release file. In my case, I can find it at cat /etc/os-release. This should work for you, since I didn't adjust anything. But I am using Amazon Linux Version 2. – Mike Williamson May 2 '18 at 4:01
  • last week I was searching the same. Answer is pretty much waht Chris told - amazon linux is not directly based on anything else. There are no official centos AMI's so option is to go with RHEL7 AMI. At lease you'll know it from the beginning. Sure, it's compatible with Centos repos ;) – George Ivanov Jun 3 '18 at 5:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.