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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南