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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则