Warning for new local repository updates?

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











up vote
0
down vote

favorite












I've installed a YUM local repository on CentOS 7.4 and all works well, clients updates successfully.



I only have to warn myself when a new update appears on official mirror. I've tried



lftp -e 'open http://mirror.centos.org/centos/7/os/x86_64/Packages 
&& lcd /path/
&& mirror -n --delete
&& exit'


to download new packets, but always goes and brings some packets I've already downloaded before.



I don't know if it doesn't matter and when I run the command



createrepo --update 


it updates disposing apart the repeated packets.



Is there a way to look for only the packets that are't present on local repository?










share|improve this question



























    up vote
    0
    down vote

    favorite












    I've installed a YUM local repository on CentOS 7.4 and all works well, clients updates successfully.



    I only have to warn myself when a new update appears on official mirror. I've tried



    lftp -e 'open http://mirror.centos.org/centos/7/os/x86_64/Packages 
    && lcd /path/
    && mirror -n --delete
    && exit'


    to download new packets, but always goes and brings some packets I've already downloaded before.



    I don't know if it doesn't matter and when I run the command



    createrepo --update 


    it updates disposing apart the repeated packets.



    Is there a way to look for only the packets that are't present on local repository?










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I've installed a YUM local repository on CentOS 7.4 and all works well, clients updates successfully.



      I only have to warn myself when a new update appears on official mirror. I've tried



      lftp -e 'open http://mirror.centos.org/centos/7/os/x86_64/Packages 
      && lcd /path/
      && mirror -n --delete
      && exit'


      to download new packets, but always goes and brings some packets I've already downloaded before.



      I don't know if it doesn't matter and when I run the command



      createrepo --update 


      it updates disposing apart the repeated packets.



      Is there a way to look for only the packets that are't present on local repository?










      share|improve this question















      I've installed a YUM local repository on CentOS 7.4 and all works well, clients updates successfully.



      I only have to warn myself when a new update appears on official mirror. I've tried



      lftp -e 'open http://mirror.centos.org/centos/7/os/x86_64/Packages 
      && lcd /path/
      && mirror -n --delete
      && exit'


      to download new packets, but always goes and brings some packets I've already downloaded before.



      I don't know if it doesn't matter and when I run the command



      createrepo --update 


      it updates disposing apart the repeated packets.



      Is there a way to look for only the packets that are't present on local repository?







      centos yum repository






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 4 at 12:17









      U880D

      401314




      401314










      asked Oct 9 '17 at 17:16









      DB3632

      11




      11




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          I would use an rsync mirror. rsync will only pull down files you don't have.



          rsync -avz --exclude='repo*' rsync://mirror.cisp.com/CentOS/7/updates/x86_64/ /var/www/html/repos/centos/7/updates/x86_64/
          createrepo --update /var/www/html/repos/centos/7/updates/x86_64/


          Here is a really good article on creating an rsync mirror of a CentOS repository and which has detailed instructions.






          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%2f397074%2fwarning-for-new-local-repository-updates%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote













            I would use an rsync mirror. rsync will only pull down files you don't have.



            rsync -avz --exclude='repo*' rsync://mirror.cisp.com/CentOS/7/updates/x86_64/ /var/www/html/repos/centos/7/updates/x86_64/
            createrepo --update /var/www/html/repos/centos/7/updates/x86_64/


            Here is a really good article on creating an rsync mirror of a CentOS repository and which has detailed instructions.






            share|improve this answer


























              up vote
              1
              down vote













              I would use an rsync mirror. rsync will only pull down files you don't have.



              rsync -avz --exclude='repo*' rsync://mirror.cisp.com/CentOS/7/updates/x86_64/ /var/www/html/repos/centos/7/updates/x86_64/
              createrepo --update /var/www/html/repos/centos/7/updates/x86_64/


              Here is a really good article on creating an rsync mirror of a CentOS repository and which has detailed instructions.






              share|improve this answer
























                up vote
                1
                down vote










                up vote
                1
                down vote









                I would use an rsync mirror. rsync will only pull down files you don't have.



                rsync -avz --exclude='repo*' rsync://mirror.cisp.com/CentOS/7/updates/x86_64/ /var/www/html/repos/centos/7/updates/x86_64/
                createrepo --update /var/www/html/repos/centos/7/updates/x86_64/


                Here is a really good article on creating an rsync mirror of a CentOS repository and which has detailed instructions.






                share|improve this answer














                I would use an rsync mirror. rsync will only pull down files you don't have.



                rsync -avz --exclude='repo*' rsync://mirror.cisp.com/CentOS/7/updates/x86_64/ /var/www/html/repos/centos/7/updates/x86_64/
                createrepo --update /var/www/html/repos/centos/7/updates/x86_64/


                Here is a really good article on creating an rsync mirror of a CentOS repository and which has detailed instructions.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jun 4 at 15:17









                U880D

                401314




                401314










                answered May 26 at 22:14









                Tim Brandrick

                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%2f397074%2fwarning-for-new-local-repository-updates%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?