Amazon Web Services (AWS) offers an officially supported Amazon Machine Image (AMI), but it doesn't indicate which Linux distribution it's based upon.
Is the official Amazon Linux AMI based on another Linux distribution, and if so, which one?
Amazon Web Services (AWS) offers an officially supported Amazon Machine Image (AMI), but it doesn't indicate which Linux distribution it's based upon.
Is the official Amazon Linux AMI based on another Linux distribution, and if so, which one?
Instead of guessing which version of RHEL a particular distro is based off, just run:
For Amazon Linux 2, this will give you
7
.There's a discussion thread available over on the AWS forums that indicates the officially supported Amazon Linux AMI is not based upon any Linux distribution. Rather, the Amazon Linux AMI is independently maintained image by Amazon.
Seems like it's based on RHEL:
freedesktop says of "ID_LIKE":
listing one or more OS identifiers the local OS is a derivative from
If you were to look at RHEL/CentOS7 the same file would read:
And yet, Amazon Linux still features
yum
and nodnf
in sight; weird. Speculation leads me to support the theory that Amazon has a supported upstream agreement with RH.That it's based on RHEL 5/6 seems extremely unlikely.
That would be both lazy and stupid; 2 things I wouldn't normally ascribe to Amazon's engineers. One way to determine that would be to isolate something that is only present in the latest version of RHEL7, a driver, kernel security patch, etc. and run the same test on Amazon Linux; it's either present or it's not.
While far less irresponsible, there's no valid reason to even use RHEL6x either.
A bit late, but you can run:
cat /proc/version
and will tell you:
Linux version 4.14.173-137.229.amzn2.x86_64 (mockbuild@ip-10-0-1-143) (gcc version 7.3.1 20180712 (Red Hat 7.3.1-6) (GCC)) #1 SMP Wed Apr 1 18:06:08 UTC 2020
RedHat 7 in this case.
Based on file structure where instead of /usr/local/bin/composer I have to use /usr/bin/composer it is CentOS 7
Its absurd to state that Amazon Linux 2 is not based on any of the popular linux distributions but is an entity of its own. How is someone supposed to install other linux packages that are not certified for Amazon Linux ? So, I have
Amazon Linux 2
installed. It seems to be based on RHEL 7. Output ofcat /etc/os-release
:Output of
cat /proc/version
: