How to add a CentOS repo, having URL of Packages

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












In Centos 7, I want to install some packages that I see in the following URL:
http://mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages/



How can I add this URL to my yum package manager ?



PS: downloading a single rpm file doesn't work, because it looks recursively for dependencies with the same version.







share|improve this question

















  • 2




    That repo is already in the base set of repos for CentOS 7.
    – Ignacio Vazquez-Abrams
    May 18 at 16:46










  • With version 7, not with a specific version 7.4.1708
    – ForzaGreen
    May 18 at 17:06










  • Why do you want to pin the repo to a specific version?
    – Ignacio Vazquez-Abrams
    May 18 at 17:07










  • I want a specific package version that exists only in this repo version.
    – ForzaGreen
    May 18 at 17:23










  • Force the releasever and then pin the package.
    – Ignacio Vazquez-Abrams
    May 18 at 17:27














up vote
0
down vote

favorite












In Centos 7, I want to install some packages that I see in the following URL:
http://mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages/



How can I add this URL to my yum package manager ?



PS: downloading a single rpm file doesn't work, because it looks recursively for dependencies with the same version.







share|improve this question

















  • 2




    That repo is already in the base set of repos for CentOS 7.
    – Ignacio Vazquez-Abrams
    May 18 at 16:46










  • With version 7, not with a specific version 7.4.1708
    – ForzaGreen
    May 18 at 17:06










  • Why do you want to pin the repo to a specific version?
    – Ignacio Vazquez-Abrams
    May 18 at 17:07










  • I want a specific package version that exists only in this repo version.
    – ForzaGreen
    May 18 at 17:23










  • Force the releasever and then pin the package.
    – Ignacio Vazquez-Abrams
    May 18 at 17:27












up vote
0
down vote

favorite









up vote
0
down vote

favorite











In Centos 7, I want to install some packages that I see in the following URL:
http://mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages/



How can I add this URL to my yum package manager ?



PS: downloading a single rpm file doesn't work, because it looks recursively for dependencies with the same version.







share|improve this question













In Centos 7, I want to install some packages that I see in the following URL:
http://mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages/



How can I add this URL to my yum package manager ?



PS: downloading a single rpm file doesn't work, because it looks recursively for dependencies with the same version.









share|improve this question












share|improve this question




share|improve this question








edited May 18 at 19:36









Jeff Schaller

31.1k846105




31.1k846105









asked May 18 at 16:41









ForzaGreen

1014




1014







  • 2




    That repo is already in the base set of repos for CentOS 7.
    – Ignacio Vazquez-Abrams
    May 18 at 16:46










  • With version 7, not with a specific version 7.4.1708
    – ForzaGreen
    May 18 at 17:06










  • Why do you want to pin the repo to a specific version?
    – Ignacio Vazquez-Abrams
    May 18 at 17:07










  • I want a specific package version that exists only in this repo version.
    – ForzaGreen
    May 18 at 17:23










  • Force the releasever and then pin the package.
    – Ignacio Vazquez-Abrams
    May 18 at 17:27












  • 2




    That repo is already in the base set of repos for CentOS 7.
    – Ignacio Vazquez-Abrams
    May 18 at 16:46










  • With version 7, not with a specific version 7.4.1708
    – ForzaGreen
    May 18 at 17:06










  • Why do you want to pin the repo to a specific version?
    – Ignacio Vazquez-Abrams
    May 18 at 17:07










  • I want a specific package version that exists only in this repo version.
    – ForzaGreen
    May 18 at 17:23










  • Force the releasever and then pin the package.
    – Ignacio Vazquez-Abrams
    May 18 at 17:27







2




2




That repo is already in the base set of repos for CentOS 7.
– Ignacio Vazquez-Abrams
May 18 at 16:46




That repo is already in the base set of repos for CentOS 7.
– Ignacio Vazquez-Abrams
May 18 at 16:46












With version 7, not with a specific version 7.4.1708
– ForzaGreen
May 18 at 17:06




With version 7, not with a specific version 7.4.1708
– ForzaGreen
May 18 at 17:06












Why do you want to pin the repo to a specific version?
– Ignacio Vazquez-Abrams
May 18 at 17:07




Why do you want to pin the repo to a specific version?
– Ignacio Vazquez-Abrams
May 18 at 17:07












I want a specific package version that exists only in this repo version.
– ForzaGreen
May 18 at 17:23




I want a specific package version that exists only in this repo version.
– ForzaGreen
May 18 at 17:23












Force the releasever and then pin the package.
– Ignacio Vazquez-Abrams
May 18 at 17:27




Force the releasever and then pin the package.
– Ignacio Vazquez-Abrams
May 18 at 17:27










2 Answers
2






active

oldest

votes

















up vote
0
down vote













Take a peek at the files /etc/yum.conf and the ones in /etc/yum.repos.d, you should be able to cobble up something for unofficial repositories. That if they don't publish a package containing the required configuration.



You certainly can also download all needed packages, and install them "by hand" with yum. But that way you won't get updates automatically.






share|improve this answer

















  • 1




    Since this is an official repository, that seems unnecessary.
    – mattdm
    May 18 at 16:58










  • The question was about unofficial repositories...
    – vonbrand
    May 18 at 17:03










  • It was? Are we looking at the same question? The one I am looking at, right above this answer, refers to mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages
    – mattdm
    May 18 at 17:05

















up vote
0
down vote



accepted










I had to add a new repo file: e.g. /etc/yum.repos.d/CentOS-7.4.1708.repo with repo configuration:



[extras741708]
name=Extras packages for CentOS 7.4.1708 for x86_64
baseurl=http://mirror.centos.org/centos/7.4.1708/extras/x86_64/
enabled=1


Then, to install for example docker-1.12.6-55.gitc4618fb.el7.centos (which has dependencies in the same Packages), run:



$ sudo yum install -y docker-1.12.6-55.gitc4618fb.el7.centos 


Options --disablerepo=* with --enablerepo=extras741708 can be used to enforce only the new repo file to be considered.



--- UPDATE ---



Package version 7.4.1708 doesn't exist anymore in mirror.centos.org. You should rather use: baseurl=http://vault.centos.org/centos/7.4.1708/extras/x86_64/






share|improve this answer























    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f444651%2fhow-to-add-a-centos-repo-having-url-of-packages%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Take a peek at the files /etc/yum.conf and the ones in /etc/yum.repos.d, you should be able to cobble up something for unofficial repositories. That if they don't publish a package containing the required configuration.



    You certainly can also download all needed packages, and install them "by hand" with yum. But that way you won't get updates automatically.






    share|improve this answer

















    • 1




      Since this is an official repository, that seems unnecessary.
      – mattdm
      May 18 at 16:58










    • The question was about unofficial repositories...
      – vonbrand
      May 18 at 17:03










    • It was? Are we looking at the same question? The one I am looking at, right above this answer, refers to mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages
      – mattdm
      May 18 at 17:05














    up vote
    0
    down vote













    Take a peek at the files /etc/yum.conf and the ones in /etc/yum.repos.d, you should be able to cobble up something for unofficial repositories. That if they don't publish a package containing the required configuration.



    You certainly can also download all needed packages, and install them "by hand" with yum. But that way you won't get updates automatically.






    share|improve this answer

















    • 1




      Since this is an official repository, that seems unnecessary.
      – mattdm
      May 18 at 16:58










    • The question was about unofficial repositories...
      – vonbrand
      May 18 at 17:03










    • It was? Are we looking at the same question? The one I am looking at, right above this answer, refers to mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages
      – mattdm
      May 18 at 17:05












    up vote
    0
    down vote










    up vote
    0
    down vote









    Take a peek at the files /etc/yum.conf and the ones in /etc/yum.repos.d, you should be able to cobble up something for unofficial repositories. That if they don't publish a package containing the required configuration.



    You certainly can also download all needed packages, and install them "by hand" with yum. But that way you won't get updates automatically.






    share|improve this answer













    Take a peek at the files /etc/yum.conf and the ones in /etc/yum.repos.d, you should be able to cobble up something for unofficial repositories. That if they don't publish a package containing the required configuration.



    You certainly can also download all needed packages, and install them "by hand" with yum. But that way you won't get updates automatically.







    share|improve this answer













    share|improve this answer



    share|improve this answer











    answered May 18 at 16:53









    vonbrand

    13.9k22443




    13.9k22443







    • 1




      Since this is an official repository, that seems unnecessary.
      – mattdm
      May 18 at 16:58










    • The question was about unofficial repositories...
      – vonbrand
      May 18 at 17:03










    • It was? Are we looking at the same question? The one I am looking at, right above this answer, refers to mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages
      – mattdm
      May 18 at 17:05












    • 1




      Since this is an official repository, that seems unnecessary.
      – mattdm
      May 18 at 16:58










    • The question was about unofficial repositories...
      – vonbrand
      May 18 at 17:03










    • It was? Are we looking at the same question? The one I am looking at, right above this answer, refers to mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages
      – mattdm
      May 18 at 17:05







    1




    1




    Since this is an official repository, that seems unnecessary.
    – mattdm
    May 18 at 16:58




    Since this is an official repository, that seems unnecessary.
    – mattdm
    May 18 at 16:58












    The question was about unofficial repositories...
    – vonbrand
    May 18 at 17:03




    The question was about unofficial repositories...
    – vonbrand
    May 18 at 17:03












    It was? Are we looking at the same question? The one I am looking at, right above this answer, refers to mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages
    – mattdm
    May 18 at 17:05




    It was? Are we looking at the same question? The one I am looking at, right above this answer, refers to mirror.centos.org/centos/7.4.1708/extras/x86_64/Packages
    – mattdm
    May 18 at 17:05












    up vote
    0
    down vote



    accepted










    I had to add a new repo file: e.g. /etc/yum.repos.d/CentOS-7.4.1708.repo with repo configuration:



    [extras741708]
    name=Extras packages for CentOS 7.4.1708 for x86_64
    baseurl=http://mirror.centos.org/centos/7.4.1708/extras/x86_64/
    enabled=1


    Then, to install for example docker-1.12.6-55.gitc4618fb.el7.centos (which has dependencies in the same Packages), run:



    $ sudo yum install -y docker-1.12.6-55.gitc4618fb.el7.centos 


    Options --disablerepo=* with --enablerepo=extras741708 can be used to enforce only the new repo file to be considered.



    --- UPDATE ---



    Package version 7.4.1708 doesn't exist anymore in mirror.centos.org. You should rather use: baseurl=http://vault.centos.org/centos/7.4.1708/extras/x86_64/






    share|improve this answer



























      up vote
      0
      down vote



      accepted










      I had to add a new repo file: e.g. /etc/yum.repos.d/CentOS-7.4.1708.repo with repo configuration:



      [extras741708]
      name=Extras packages for CentOS 7.4.1708 for x86_64
      baseurl=http://mirror.centos.org/centos/7.4.1708/extras/x86_64/
      enabled=1


      Then, to install for example docker-1.12.6-55.gitc4618fb.el7.centos (which has dependencies in the same Packages), run:



      $ sudo yum install -y docker-1.12.6-55.gitc4618fb.el7.centos 


      Options --disablerepo=* with --enablerepo=extras741708 can be used to enforce only the new repo file to be considered.



      --- UPDATE ---



      Package version 7.4.1708 doesn't exist anymore in mirror.centos.org. You should rather use: baseurl=http://vault.centos.org/centos/7.4.1708/extras/x86_64/






      share|improve this answer

























        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        I had to add a new repo file: e.g. /etc/yum.repos.d/CentOS-7.4.1708.repo with repo configuration:



        [extras741708]
        name=Extras packages for CentOS 7.4.1708 for x86_64
        baseurl=http://mirror.centos.org/centos/7.4.1708/extras/x86_64/
        enabled=1


        Then, to install for example docker-1.12.6-55.gitc4618fb.el7.centos (which has dependencies in the same Packages), run:



        $ sudo yum install -y docker-1.12.6-55.gitc4618fb.el7.centos 


        Options --disablerepo=* with --enablerepo=extras741708 can be used to enforce only the new repo file to be considered.



        --- UPDATE ---



        Package version 7.4.1708 doesn't exist anymore in mirror.centos.org. You should rather use: baseurl=http://vault.centos.org/centos/7.4.1708/extras/x86_64/






        share|improve this answer















        I had to add a new repo file: e.g. /etc/yum.repos.d/CentOS-7.4.1708.repo with repo configuration:



        [extras741708]
        name=Extras packages for CentOS 7.4.1708 for x86_64
        baseurl=http://mirror.centos.org/centos/7.4.1708/extras/x86_64/
        enabled=1


        Then, to install for example docker-1.12.6-55.gitc4618fb.el7.centos (which has dependencies in the same Packages), run:



        $ sudo yum install -y docker-1.12.6-55.gitc4618fb.el7.centos 


        Options --disablerepo=* with --enablerepo=extras741708 can be used to enforce only the new repo file to be considered.



        --- UPDATE ---



        Package version 7.4.1708 doesn't exist anymore in mirror.centos.org. You should rather use: baseurl=http://vault.centos.org/centos/7.4.1708/extras/x86_64/







        share|improve this answer















        share|improve this answer



        share|improve this answer








        edited May 29 at 14:21


























        answered May 19 at 1:17









        ForzaGreen

        1014




        1014






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f444651%2fhow-to-add-a-centos-repo-having-url-of-packages%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)