Centos: include only one package from a repo

Nuno

Well-known member
Hello,

I'm used to Debian, but recently start using Centos 7.
I installed Redis from remi repo since EPEL only has version 2.
Since this is the only package I need, can I include this package and exclude all others?

Code:
[remi]
...
enabled=1
includepkgs=redis
exclude=*
...

Does this works as expected?

Thanks
 
From yum.conf man ...

"includepkgs Inverse of exclude. This is a list of packages you want to use from a repository. If this option lists only one package then that is all yum will ever see from the repository"

Should googled first :)
 
Top Bottom