3개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
I don't think the apt command is available on Amazon Linux.
I thought that either the OS used was different or the command was wrong.
Amazon Linux installs packages with yum instead of apt.
0
You may find the packages are not available in the Amazon managed repository. You may need to add a 3rd party Repo to install packages as AWS may not maintain or add said packages to their repos.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/add-repositories.html
0
Try this way
- <package-name> with the actual name of the package you want to install sudo yum install <package-name>
- If you have a list of multiple packages you want to install, you can specify them separated by spaces sudo yum install <package1> <package2> <package3>
- If you want to search for a specific package, you can use the yum search command sudo yum search <package-name>
답변함 일 년 전
관련 콘텐츠
- 질문됨 8달 전
- AWS 공식업데이트됨 2년 전
the command is just an example, i used yum itself but it cannot find the packages i mentioned
Is Amazon Linux correct for the OS, not Amazon Linux2? Perhaps the installation instructions at the following URL may be helpful. https://unix.stackexchange.com/questions/292630/how-to-install-opencl-in-centos-7-using-yum