Amazon linux AMI cannot find packages

0

Hi, I need some packges to build some binaries on EC2 running amazon linux, sudo apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl clang build-essential hwloc libhwloc-dev wget -y

Im getting this error :

Error: Unable to find a match: mesa-opencl-icd ocl-icd-opencl-dev bzr build-essential libhwloc-dev

Arc
질문됨 일 년 전667회 조회
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.

profile picture
전문가
답변함 일 년 전
profile pictureAWS
전문가
검토됨 일 년 전
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

profile picture
전문가
답변함 일 년 전
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>
profile picture
답변함 일 년 전

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

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

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

관련 콘텐츠