The Amazon Linux AMI is a supported and maintained Linux image provided by Amazon Web Services for use on Amazon Elastic Compute Cloud (Amazon EC2).
Questions tagged [amazon-linux]
312 questions
323
votes
20 answers
How to yum install Node.JS on Amazon Linux
I've seen the writeup on using yum to install the dependencies, and then installing Node.JS & NPM from source. While this does work, I feel like Node.JS and NPM should both be in a public repo somewhere.
How can I install Node.JS and NPM in one…

Tim Fulmer
- 14,970
- 7
- 28
- 34
181
votes
12 answers
Amazon Linux: "apt-get: command not found"
I'm trying to install an Apache server on my AWS instance. However, it seems that it doesn't have the apt package installed.
I googled and all I found was some broken links to this package. I am using PuTTY on a Windows machine if that information…

Caio Favero
- 2,196
- 3
- 17
- 18
100
votes
5 answers
GLIBC_2.27 not found while installing Node on Amazon EC2 instance
I'm trying to install Nodejs on Amazon linux machine, I'm following this documentation to install node https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-up-node-on-ec2-instance.html but I'm getting below error when I execute…

Brady Maf
- 1,279
- 2
- 5
- 12
43
votes
5 answers
Find if AWS instance is running Amazon Linux 1 or 2?
In AWS I need to add amazon linux instance to domain based on this article.
However how do i know which Amazon Linux version the instance is using.
I do not have access to AWS console. But i do have access to actual instance.
What linux command i…

LP13
- 30,567
- 53
- 217
- 400
40
votes
6 answers
Fatal error: Class 'IntlDateFormatter' not found
I installed WAMP on my local machine. My PHP version is 5.3.3 in phpinfo() but that extension doesn't exist! :(
How can I install this extension without compiling it? Here is just source of it.

Jalal
- 6,594
- 9
- 63
- 100
35
votes
2 answers
Command not found: systemctl on Amazon Linux 2018.03
I am following this Amazon AWS guide to install SSL certificates. I am running Apache on AWS EC2 using the Amazon Linux AMI 2018.03. The first step in the guide is to run:
sudo systemctl is-enabled httpd
I get "bash: systemctl: command not…

Jason
- 581
- 1
- 6
- 18
31
votes
2 answers
How to install jq on amazon EC2 instance
I am trying to install jq JSON parser on amazon instance, unfortunately, i'm not able to install it can someone guide me.

aMoL Thite
- 951
- 1
- 7
- 18
24
votes
2 answers
Setting up Supervisord on a AWS AMI Linux Server
I'm trying to get supervisor working to make sure my queue system is always running.
Here are the steps I took, which I pieced together from various sources:
(Ran as root or super user)
1)
$ easy_install supervisor
2)
$ echo_supervisord_conf >…

zeros-and-ones
- 4,227
- 6
- 35
- 54
23
votes
8 answers
How to install docker on Amazon Linux2
I wanna create docker image for Amazon ECR.
but yum can't find it in my Amazon Linux2.
[root@*** ~]# yum install -y docker
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
No package docker available.
Error: Nothing to do
Next, I tried to…

isexxx
- 727
- 1
- 6
- 23
18
votes
4 answers
Installing Chromium on Amazon Linux
I am trying to install Chromium (or Chrome, whichever) on an Amazon Linux machine.
I have tried many steps, to no avail. Here is what I have tried:
Simple Yum Install
yum install epel # worked
yum install chromium
generated error…

Vic Seedoubleyew
- 9,888
- 6
- 55
- 76
17
votes
2 answers
"groupadd: Command not found" in docker container even though I install it and I am root
I have the below Dockerfile which I want to build. It's basically just the normal jboss/wildfly base image, but built with amazonlinux instead of centOS.
The build error's out with the line "groupadd: Command not found"
After this happened the first…

Sollie
- 367
- 1
- 3
- 9
14
votes
3 answers
Command 01_migrate failed on Amazon Linux 2 AMI
I have a Django project which is deployed to Elastic Beanstalk Amazon Linux 2 AMI. I installed PyMySQL for connecting to the db and i added these lines to settings.py such as below;
import pymysql
pymysql.version_info = (1, 4, 6, "final",…

Aslı Kök
- 616
- 8
- 19
12
votes
1 answer
how to install devtoolset-8 / GCC 8 on Amazon Linux 2
On an Amazon Linux 2 Docker image, "yum install gcc" installs gcc 7.3.1.
I want to install gcc 8. It seems it normally can be installed as part of "devtoolset-8" (https://www.softwarecollections.org/en/scls/rhscl/devtoolset-8/), but the…

lznt
- 2,330
- 2
- 22
- 27
10
votes
1 answer
How to install standard system commands for amazon-linux 2
I seem to be missing some very basic utilities, namely the commands sudo and which seem to be missing. How can I install these, or even better is there an ami linux image which has all of these kind of things pre-installed.
Dockerfile:
FROM…

Shardj
- 1,800
- 2
- 17
- 43
10
votes
1 answer
Error: unable to load R code in package 'graphics' when compiling R 3.6.0 on Linux
I'm encountering a bug when building R on the amazonlinux:2018.03.0.20190212 docker image in bitbucket pipelines. The strange thing is if I run an EC2 (Amazon Linux 2018) I can run the exact same commands with no error.
Does anyone know how to solve…

8t12c7081
- 683
- 3
- 9
- 30