Reputation: 4928
I am very new to the yum
package system, so please forgive my rookie question.
I am using an Amazon Linux AMI on EC2, would like to install a package, say opencv
with yum
:
$ sudo yum install opencv
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
No package opencv available.
Error: Nothing to do
It appears the repository yum
knows does not contain a opencv
distribution. I am wondering whether there is a way to tell yum
to find this package at certain third-party repository, and if so, is there a good place to search for repository that contains particular packages? Any pointer will be greatly appreciated!
Upvotes: 0
Views: 1103
Reputation: 52393
Check if epel repo is disabled by running:
sudo yum repolist all
If you see epel is disabled, then enable it and search:
sudo yum --enablerepo=epel search opencv
If you find it, then install it. If you don't find it, you may to download the source, build and install it. Should be straightforward.
Upvotes: 2