Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon linux AMI vs Ubuntu

I was given a project that was running on Amazon linux AMI, now I need to transfer project to Ubuntu server.

I am more familiar with UBUNTU.

I was wondering what would be the difference? Will the project work perfectly on Ubuntu?

Thank you.

like image 203
SitaReturn Avatar asked Dec 07 '15 10:12

SitaReturn


People also ask

Is Amazon Linux similar to Ubuntu?

We can conclude that Ubuntu is a general-purpose operating system suited for learning and research purposes due to its user-friendly interface. While Amazon Linux is designed especially for AWS-related work, and it also comes pre-installed with Amazon web tools.

Is AWS Linux based on Ubuntu?

Ubuntu is popular because of its robust user interface; you can easily work with Ubuntu from desktop or from the command line. Ubuntu is a favorite platform for Linux stacks; AWS has hundreds of application stacks and application servers based on Ubuntu.

Is Amazon Linux Ubuntu or CentOS?

Amazon Linux has traditionally been built around CentOS. With the transition from its standard release cycle to CentOS Stream, Amazon has decided transition to using Fedora as the base for Amazon Linux 2022, with the kernel from the Linux LTS versions.

Which is the best AMI for AWS?

We recommend ec2-user. Configure a running instance from your final AMI to the end-user experience you want, and test all installation methods, features, and performance before submission to AWS Marketplace.


2 Answers

Amazon Linux AMI is a red hat based distro so things like the package installer or the tools for service manage are different, and another thing you need to consider is the way of bootstraping, amazon instances are more flexible to do some things in cloudformation in the ubuntu way the best form to do it is with cloudinit https://help.ubuntu.com/community/CloudInit, you need to consider the packages too are multiple packages that not are native supported by Amazon Linux.

like image 127
Douglas Lopez Avatar answered Oct 17 '22 01:10

Douglas Lopez


Amazon Linux AMI based on CentOS 6.x, whereas Amazon Linux 2 is CentOS 7.x,

So instead of apt you would use yum,

and instead of /usr/local/bin/composer you'll have to use /usr/bin/composer

...

like image 44
Yevgeniy Afanasyev Avatar answered Oct 17 '22 03:10

Yevgeniy Afanasyev