3 Antworten
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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>
beantwortet vor einem Jahr
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 8 Monaten
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