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개 답변
1
수락된 답변

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
전문가
Steve_M
답변함 8달 전
profile pictureAWS
전문가
검토됨 8달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠