-1

How to install apt-get in amazon linux machine,using yum or wget ,i searched extensively but didnt find relvant ..getting below message

[ec2-user@ip-172-31-33-94 ~]$ sudo apt-get update -y && sudo apt-get install -y 
linux-image-extra-$(uname -r)
sudo: apt-get: command not found
2
  • This question well suited for superuser.com
    – alfC
    Dec 13, 2018 at 22:09
  • I see an amazon-rds tag in the OP. How is this relevant to RDS?
    – The-Big-K
    Dec 15, 2018 at 3:52

1 Answer 1

2

well figured out these commands hence answering,these commands will install apt-get and run docker as ec2 user

sudo yum update -y
sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user
docker info
docker run -it --rm tarunkumard/gatling:FirstScript

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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