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
質問済み 1年前666ビュー
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
エキスパート
回答済み 1年前
profile pictureAWS
エキスパート
レビュー済み 1年前
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
エキスパート
回答済み 1年前
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
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ