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 réponse
1
Réponse acceptée

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
répondu il y a 8 mois
profile pictureAWS
EXPERT
vérifié il y a 8 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions