yum repolist shows status 0

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











up vote
0
down vote

favorite












I am working on Oracle Linux. I am trying to create a local repository and install RPM packages from there using yum install. I created a local repository and added a .repo file in the /etc/yum.repos.d/ directory. I run the following commands.



yum clean all
yum update
yum repolist


status = 0



Why isn't it detecting the RPM package in the directory?










share|improve this question

























    up vote
    0
    down vote

    favorite












    I am working on Oracle Linux. I am trying to create a local repository and install RPM packages from there using yum install. I created a local repository and added a .repo file in the /etc/yum.repos.d/ directory. I run the following commands.



    yum clean all
    yum update
    yum repolist


    status = 0



    Why isn't it detecting the RPM package in the directory?










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am working on Oracle Linux. I am trying to create a local repository and install RPM packages from there using yum install. I created a local repository and added a .repo file in the /etc/yum.repos.d/ directory. I run the following commands.



      yum clean all
      yum update
      yum repolist


      status = 0



      Why isn't it detecting the RPM package in the directory?










      share|improve this question













      I am working on Oracle Linux. I am trying to create a local repository and install RPM packages from there using yum install. I created a local repository and added a .repo file in the /etc/yum.repos.d/ directory. I run the following commands.



      yum clean all
      yum update
      yum repolist


      status = 0



      Why isn't it detecting the RPM package in the directory?







      rpm repository oracle-linux






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 1 '16 at 12:18









      Alchemist

      2261414




      2261414




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          I found a solution for the repolist showing the status zero. Apparently, it is because of the rest of the .repo files in the /etc/yum.repos.d/ directory. Just rename the files to an extension other than .repo or move them to another directory leaving on the one you need behind. After that, run the following:



          yum clean all
          yum update
          yum repolist


          The status should now be fixed.



          fixed



          Here is another description for the same solution.



          However, please be aware that doing this will remove those other repositories from your list and you won't be able to download packages from them. To use them again, simply put them back with the proper extension and they'll work fine.






          share|improve this answer






















          • You shouldn't rename the other repos - you should just do the yum clean bit. Removing other repos will have undesirable side effects.
            – John
            Sep 1 '16 at 12:21










          • @John It didn't work that way. I tried. You're welcome to try.
            – Alchemist
            Sep 1 '16 at 12:21











          • in this folders /etc/yum/ when run : 'ls' command the results : protected.d repos.d vars version-groups.conf yum.conf yum-daily.yum yum-weekly.yum what about this? in debian
            – saber tabatabaee yazdi
            Dec 12 '17 at 15:49







          • 1




            @sabertabatabaeeyazdi It looks like its a different directory you mentioned. The one you should be looking for is /etc/yum.repos.d/
            – Alchemist
            Dec 13 '17 at 8:56


















          up vote
          -1
          down vote













          I have the same problem on Cento 7. When I try to add an new repo ...
          The command yum repolist show zero status for all the latest repo ..
          I don't know what, exactly, the problem is, but I think that the system needs specific time to check and update the repolist database






          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%2f307213%2fyum-repolist-shows-status-0%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



            accepted










            I found a solution for the repolist showing the status zero. Apparently, it is because of the rest of the .repo files in the /etc/yum.repos.d/ directory. Just rename the files to an extension other than .repo or move them to another directory leaving on the one you need behind. After that, run the following:



            yum clean all
            yum update
            yum repolist


            The status should now be fixed.



            fixed



            Here is another description for the same solution.



            However, please be aware that doing this will remove those other repositories from your list and you won't be able to download packages from them. To use them again, simply put them back with the proper extension and they'll work fine.






            share|improve this answer






















            • You shouldn't rename the other repos - you should just do the yum clean bit. Removing other repos will have undesirable side effects.
              – John
              Sep 1 '16 at 12:21










            • @John It didn't work that way. I tried. You're welcome to try.
              – Alchemist
              Sep 1 '16 at 12:21











            • in this folders /etc/yum/ when run : 'ls' command the results : protected.d repos.d vars version-groups.conf yum.conf yum-daily.yum yum-weekly.yum what about this? in debian
              – saber tabatabaee yazdi
              Dec 12 '17 at 15:49







            • 1




              @sabertabatabaeeyazdi It looks like its a different directory you mentioned. The one you should be looking for is /etc/yum.repos.d/
              – Alchemist
              Dec 13 '17 at 8:56















            up vote
            0
            down vote



            accepted










            I found a solution for the repolist showing the status zero. Apparently, it is because of the rest of the .repo files in the /etc/yum.repos.d/ directory. Just rename the files to an extension other than .repo or move them to another directory leaving on the one you need behind. After that, run the following:



            yum clean all
            yum update
            yum repolist


            The status should now be fixed.



            fixed



            Here is another description for the same solution.



            However, please be aware that doing this will remove those other repositories from your list and you won't be able to download packages from them. To use them again, simply put them back with the proper extension and they'll work fine.






            share|improve this answer






















            • You shouldn't rename the other repos - you should just do the yum clean bit. Removing other repos will have undesirable side effects.
              – John
              Sep 1 '16 at 12:21










            • @John It didn't work that way. I tried. You're welcome to try.
              – Alchemist
              Sep 1 '16 at 12:21











            • in this folders /etc/yum/ when run : 'ls' command the results : protected.d repos.d vars version-groups.conf yum.conf yum-daily.yum yum-weekly.yum what about this? in debian
              – saber tabatabaee yazdi
              Dec 12 '17 at 15:49







            • 1




              @sabertabatabaeeyazdi It looks like its a different directory you mentioned. The one you should be looking for is /etc/yum.repos.d/
              – Alchemist
              Dec 13 '17 at 8:56













            up vote
            0
            down vote



            accepted







            up vote
            0
            down vote



            accepted






            I found a solution for the repolist showing the status zero. Apparently, it is because of the rest of the .repo files in the /etc/yum.repos.d/ directory. Just rename the files to an extension other than .repo or move them to another directory leaving on the one you need behind. After that, run the following:



            yum clean all
            yum update
            yum repolist


            The status should now be fixed.



            fixed



            Here is another description for the same solution.



            However, please be aware that doing this will remove those other repositories from your list and you won't be able to download packages from them. To use them again, simply put them back with the proper extension and they'll work fine.






            share|improve this answer














            I found a solution for the repolist showing the status zero. Apparently, it is because of the rest of the .repo files in the /etc/yum.repos.d/ directory. Just rename the files to an extension other than .repo or move them to another directory leaving on the one you need behind. After that, run the following:



            yum clean all
            yum update
            yum repolist


            The status should now be fixed.



            fixed



            Here is another description for the same solution.



            However, please be aware that doing this will remove those other repositories from your list and you won't be able to download packages from them. To use them again, simply put them back with the proper extension and they'll work fine.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Sep 1 '16 at 12:33

























            answered Sep 1 '16 at 12:18









            Alchemist

            2261414




            2261414











            • You shouldn't rename the other repos - you should just do the yum clean bit. Removing other repos will have undesirable side effects.
              – John
              Sep 1 '16 at 12:21










            • @John It didn't work that way. I tried. You're welcome to try.
              – Alchemist
              Sep 1 '16 at 12:21











            • in this folders /etc/yum/ when run : 'ls' command the results : protected.d repos.d vars version-groups.conf yum.conf yum-daily.yum yum-weekly.yum what about this? in debian
              – saber tabatabaee yazdi
              Dec 12 '17 at 15:49







            • 1




              @sabertabatabaeeyazdi It looks like its a different directory you mentioned. The one you should be looking for is /etc/yum.repos.d/
              – Alchemist
              Dec 13 '17 at 8:56

















            • You shouldn't rename the other repos - you should just do the yum clean bit. Removing other repos will have undesirable side effects.
              – John
              Sep 1 '16 at 12:21










            • @John It didn't work that way. I tried. You're welcome to try.
              – Alchemist
              Sep 1 '16 at 12:21











            • in this folders /etc/yum/ when run : 'ls' command the results : protected.d repos.d vars version-groups.conf yum.conf yum-daily.yum yum-weekly.yum what about this? in debian
              – saber tabatabaee yazdi
              Dec 12 '17 at 15:49







            • 1




              @sabertabatabaeeyazdi It looks like its a different directory you mentioned. The one you should be looking for is /etc/yum.repos.d/
              – Alchemist
              Dec 13 '17 at 8:56
















            You shouldn't rename the other repos - you should just do the yum clean bit. Removing other repos will have undesirable side effects.
            – John
            Sep 1 '16 at 12:21




            You shouldn't rename the other repos - you should just do the yum clean bit. Removing other repos will have undesirable side effects.
            – John
            Sep 1 '16 at 12:21












            @John It didn't work that way. I tried. You're welcome to try.
            – Alchemist
            Sep 1 '16 at 12:21





            @John It didn't work that way. I tried. You're welcome to try.
            – Alchemist
            Sep 1 '16 at 12:21













            in this folders /etc/yum/ when run : 'ls' command the results : protected.d repos.d vars version-groups.conf yum.conf yum-daily.yum yum-weekly.yum what about this? in debian
            – saber tabatabaee yazdi
            Dec 12 '17 at 15:49





            in this folders /etc/yum/ when run : 'ls' command the results : protected.d repos.d vars version-groups.conf yum.conf yum-daily.yum yum-weekly.yum what about this? in debian
            – saber tabatabaee yazdi
            Dec 12 '17 at 15:49





            1




            1




            @sabertabatabaeeyazdi It looks like its a different directory you mentioned. The one you should be looking for is /etc/yum.repos.d/
            – Alchemist
            Dec 13 '17 at 8:56





            @sabertabatabaeeyazdi It looks like its a different directory you mentioned. The one you should be looking for is /etc/yum.repos.d/
            – Alchemist
            Dec 13 '17 at 8:56













            up vote
            -1
            down vote













            I have the same problem on Cento 7. When I try to add an new repo ...
            The command yum repolist show zero status for all the latest repo ..
            I don't know what, exactly, the problem is, but I think that the system needs specific time to check and update the repolist database






            share|improve this answer


























              up vote
              -1
              down vote













              I have the same problem on Cento 7. When I try to add an new repo ...
              The command yum repolist show zero status for all the latest repo ..
              I don't know what, exactly, the problem is, but I think that the system needs specific time to check and update the repolist database






              share|improve this answer
























                up vote
                -1
                down vote










                up vote
                -1
                down vote









                I have the same problem on Cento 7. When I try to add an new repo ...
                The command yum repolist show zero status for all the latest repo ..
                I don't know what, exactly, the problem is, but I think that the system needs specific time to check and update the repolist database






                share|improve this answer














                I have the same problem on Cento 7. When I try to add an new repo ...
                The command yum repolist show zero status for all the latest repo ..
                I don't know what, exactly, the problem is, but I think that the system needs specific time to check and update the repolist database







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Sep 27 at 23:14









                Goro

                6,67552865




                6,67552865










                answered Sep 27 at 22:43









                Abdelmoumen Drici

                11




                11



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f307213%2fyum-repolist-shows-status-0%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?