1. 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

Discussion in 'Server Configuration and Hosting' started by Nuno, Jan 25, 2016.

  1. Nuno

    Nuno Active Member


    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?

    Does this works as expected?

  2. Nuno

    Nuno Active Member

    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 :)

Share This Page