How to install Python, V S code in AWS Linux VM with ID LIKE "centos rhel fedora"

0

As this ID is not support (apt, apt-get, dpkg). ---> sudo apt command not found

Please provide some insight to install apllications in this version of Linux. ec2-user cat /etc/-release NAME="Amazon Linux" VERSION="2" ID="amzn" ID LIKE "centos rhel fedora" VERSION ID="2" PRETTY NAME="Amazon Linux 2" ANSI COLOR="0;33" CPE NAME="cpe:2.3:0:amazon: amazon linux:2" HOME_URL="https://amazon linux.com/" Amazon Linux release 2 (Karoo)

Thank you

1 Answer
1
Accepted Answer

It looks like your EC2 is running Amazon Linux 2 which doesn't use the apt package manager, but instead uses yum https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/find-install-software.html

The latest version - AL 2023 - uses the successor to yum called dnf https://docs.aws.amazon.com/linux/al2023/ug/package-management.html

YUM installation of VS Code is described here https://code.visualstudio.com/docs/setup/linux#_rhel-fedora-and-centos-based-distributions

profile picture
EXPERT
Steve_M
answered 7 months ago
profile pictureAWS
EXPERT
reviewed 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions