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>
已回答 1 年前
相關內容
- 已提問 7 個月前
- 已提問 7 個月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
- 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