• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Centos: include only one package from a repo

Nuno

Active member
#1
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
 

Nuno

Active member
#2
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 :)