/var/lib/apt/lists is huge











up vote
27
down vote

favorite
9












I've noticed that /var/lib/apt/lists is HUGE. It's as large as 86MB. Which seems a little too big. Is this normal? If not, what should I do?










share|improve this question




























    up vote
    27
    down vote

    favorite
    9












    I've noticed that /var/lib/apt/lists is HUGE. It's as large as 86MB. Which seems a little too big. Is this normal? If not, what should I do?










    share|improve this question


























      up vote
      27
      down vote

      favorite
      9









      up vote
      27
      down vote

      favorite
      9






      9





      I've noticed that /var/lib/apt/lists is HUGE. It's as large as 86MB. Which seems a little too big. Is this normal? If not, what should I do?










      share|improve this question















      I've noticed that /var/lib/apt/lists is HUGE. It's as large as 86MB. Which seems a little too big. Is this normal? If not, what should I do?







      apt package-management






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 23 at 1:39









      MultiplyByZer0

      1036




      1036










      asked Aug 24 '12 at 16:41









      thabubble

      240135




      240135






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          24
          down vote



          accepted










          When you run sudo apt-get update (or use the Refresh button in a package manager), a list of packages will get downloaded from the Ubuntu servers. These files are then stored in /var/lib/apt/lists/.



          You can safely remove the contents of that directory as it is recreated when you refresh the package lists. If you remove the files, but do not run apt-get update to fetch the lists, commands like apt-cache will fail to provide information (since the cache is empty).



          To shrink the directory and speed up fetching package lists, consider disabling some repositories that you do not need (see How to remove a repository?). This includes PPAs (see also How can PPAs be removed?)






          share|improve this answer






























            up vote
            10
            down vote













            If you feel like that, then try with this command:



            sudo rm -rf /var/lib/apt/lists/*
            sudo apt-get update





            share|improve this answer



















            • 1




              Will this be safe? Do those lists only contain packages that could be installed and not the installed ones?
              – thabubble
              Aug 24 '12 at 17:25










            • @thabubble yes it is , it will recreate the cache information of your source.there is no harm with this . I am sure .
              – rɑːdʒɑ
              Aug 24 '12 at 18:32






            • 5




              So why is it not in /var/cache/ ?
              – Johan Boulé
              Apr 25 '16 at 21:13


















            up vote
            1
            down vote













            Mine is 142M, so i guess it's normal.



            The reason can be because /var/lib/apt/lists/ is the storage area for state information for each package resource specified in sources.list






            share|improve this answer





















            • It may be so large. But this is a newly installed system@642MB. Those lists take up almost 1/6 of the space. And that is huge.
              – thabubble
              Aug 24 '12 at 17:24






            • 1




              642Mb s very small for an Ubuntu installation. My root filesystem (not including any user or data files) is 14Gb. /var/lib/apt/lists is 123Mb. On a second system the values are 5.3Gb and 87Mb,
              – StarNamer
              Aug 24 '12 at 18:12












            • Yes. Ubuntu recomends 5 GB of hard-drive space minimum
              – LnxSlck
              Aug 24 '12 at 18:17










            • Mine is 43 Gigabyte
              – uvasal
              Jul 8 '15 at 2:33











            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f179955%2fvar-lib-apt-lists-is-huge%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            24
            down vote



            accepted










            When you run sudo apt-get update (or use the Refresh button in a package manager), a list of packages will get downloaded from the Ubuntu servers. These files are then stored in /var/lib/apt/lists/.



            You can safely remove the contents of that directory as it is recreated when you refresh the package lists. If you remove the files, but do not run apt-get update to fetch the lists, commands like apt-cache will fail to provide information (since the cache is empty).



            To shrink the directory and speed up fetching package lists, consider disabling some repositories that you do not need (see How to remove a repository?). This includes PPAs (see also How can PPAs be removed?)






            share|improve this answer



























              up vote
              24
              down vote



              accepted










              When you run sudo apt-get update (or use the Refresh button in a package manager), a list of packages will get downloaded from the Ubuntu servers. These files are then stored in /var/lib/apt/lists/.



              You can safely remove the contents of that directory as it is recreated when you refresh the package lists. If you remove the files, but do not run apt-get update to fetch the lists, commands like apt-cache will fail to provide information (since the cache is empty).



              To shrink the directory and speed up fetching package lists, consider disabling some repositories that you do not need (see How to remove a repository?). This includes PPAs (see also How can PPAs be removed?)






              share|improve this answer

























                up vote
                24
                down vote



                accepted







                up vote
                24
                down vote



                accepted






                When you run sudo apt-get update (or use the Refresh button in a package manager), a list of packages will get downloaded from the Ubuntu servers. These files are then stored in /var/lib/apt/lists/.



                You can safely remove the contents of that directory as it is recreated when you refresh the package lists. If you remove the files, but do not run apt-get update to fetch the lists, commands like apt-cache will fail to provide information (since the cache is empty).



                To shrink the directory and speed up fetching package lists, consider disabling some repositories that you do not need (see How to remove a repository?). This includes PPAs (see also How can PPAs be removed?)






                share|improve this answer














                When you run sudo apt-get update (or use the Refresh button in a package manager), a list of packages will get downloaded from the Ubuntu servers. These files are then stored in /var/lib/apt/lists/.



                You can safely remove the contents of that directory as it is recreated when you refresh the package lists. If you remove the files, but do not run apt-get update to fetch the lists, commands like apt-cache will fail to provide information (since the cache is empty).



                To shrink the directory and speed up fetching package lists, consider disabling some repositories that you do not need (see How to remove a repository?). This includes PPAs (see also How can PPAs be removed?)







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Apr 13 '17 at 12:23









                Community

                1




                1










                answered Aug 24 '12 at 18:02









                Lekensteyn

                119k47262354




                119k47262354
























                    up vote
                    10
                    down vote













                    If you feel like that, then try with this command:



                    sudo rm -rf /var/lib/apt/lists/*
                    sudo apt-get update





                    share|improve this answer



















                    • 1




                      Will this be safe? Do those lists only contain packages that could be installed and not the installed ones?
                      – thabubble
                      Aug 24 '12 at 17:25










                    • @thabubble yes it is , it will recreate the cache information of your source.there is no harm with this . I am sure .
                      – rɑːdʒɑ
                      Aug 24 '12 at 18:32






                    • 5




                      So why is it not in /var/cache/ ?
                      – Johan Boulé
                      Apr 25 '16 at 21:13















                    up vote
                    10
                    down vote













                    If you feel like that, then try with this command:



                    sudo rm -rf /var/lib/apt/lists/*
                    sudo apt-get update





                    share|improve this answer



















                    • 1




                      Will this be safe? Do those lists only contain packages that could be installed and not the installed ones?
                      – thabubble
                      Aug 24 '12 at 17:25










                    • @thabubble yes it is , it will recreate the cache information of your source.there is no harm with this . I am sure .
                      – rɑːdʒɑ
                      Aug 24 '12 at 18:32






                    • 5




                      So why is it not in /var/cache/ ?
                      – Johan Boulé
                      Apr 25 '16 at 21:13













                    up vote
                    10
                    down vote










                    up vote
                    10
                    down vote









                    If you feel like that, then try with this command:



                    sudo rm -rf /var/lib/apt/lists/*
                    sudo apt-get update





                    share|improve this answer














                    If you feel like that, then try with this command:



                    sudo rm -rf /var/lib/apt/lists/*
                    sudo apt-get update






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Aug 24 '12 at 17:34









                    Peachy

                    4,88172843




                    4,88172843










                    answered Aug 24 '12 at 17:17









                    rɑːdʒɑ

                    56.3k84215301




                    56.3k84215301








                    • 1




                      Will this be safe? Do those lists only contain packages that could be installed and not the installed ones?
                      – thabubble
                      Aug 24 '12 at 17:25










                    • @thabubble yes it is , it will recreate the cache information of your source.there is no harm with this . I am sure .
                      – rɑːdʒɑ
                      Aug 24 '12 at 18:32






                    • 5




                      So why is it not in /var/cache/ ?
                      – Johan Boulé
                      Apr 25 '16 at 21:13














                    • 1




                      Will this be safe? Do those lists only contain packages that could be installed and not the installed ones?
                      – thabubble
                      Aug 24 '12 at 17:25










                    • @thabubble yes it is , it will recreate the cache information of your source.there is no harm with this . I am sure .
                      – rɑːdʒɑ
                      Aug 24 '12 at 18:32






                    • 5




                      So why is it not in /var/cache/ ?
                      – Johan Boulé
                      Apr 25 '16 at 21:13








                    1




                    1




                    Will this be safe? Do those lists only contain packages that could be installed and not the installed ones?
                    – thabubble
                    Aug 24 '12 at 17:25




                    Will this be safe? Do those lists only contain packages that could be installed and not the installed ones?
                    – thabubble
                    Aug 24 '12 at 17:25












                    @thabubble yes it is , it will recreate the cache information of your source.there is no harm with this . I am sure .
                    – rɑːdʒɑ
                    Aug 24 '12 at 18:32




                    @thabubble yes it is , it will recreate the cache information of your source.there is no harm with this . I am sure .
                    – rɑːdʒɑ
                    Aug 24 '12 at 18:32




                    5




                    5




                    So why is it not in /var/cache/ ?
                    – Johan Boulé
                    Apr 25 '16 at 21:13




                    So why is it not in /var/cache/ ?
                    – Johan Boulé
                    Apr 25 '16 at 21:13










                    up vote
                    1
                    down vote













                    Mine is 142M, so i guess it's normal.



                    The reason can be because /var/lib/apt/lists/ is the storage area for state information for each package resource specified in sources.list






                    share|improve this answer





















                    • It may be so large. But this is a newly installed system@642MB. Those lists take up almost 1/6 of the space. And that is huge.
                      – thabubble
                      Aug 24 '12 at 17:24






                    • 1




                      642Mb s very small for an Ubuntu installation. My root filesystem (not including any user or data files) is 14Gb. /var/lib/apt/lists is 123Mb. On a second system the values are 5.3Gb and 87Mb,
                      – StarNamer
                      Aug 24 '12 at 18:12












                    • Yes. Ubuntu recomends 5 GB of hard-drive space minimum
                      – LnxSlck
                      Aug 24 '12 at 18:17










                    • Mine is 43 Gigabyte
                      – uvasal
                      Jul 8 '15 at 2:33















                    up vote
                    1
                    down vote













                    Mine is 142M, so i guess it's normal.



                    The reason can be because /var/lib/apt/lists/ is the storage area for state information for each package resource specified in sources.list






                    share|improve this answer





















                    • It may be so large. But this is a newly installed system@642MB. Those lists take up almost 1/6 of the space. And that is huge.
                      – thabubble
                      Aug 24 '12 at 17:24






                    • 1




                      642Mb s very small for an Ubuntu installation. My root filesystem (not including any user or data files) is 14Gb. /var/lib/apt/lists is 123Mb. On a second system the values are 5.3Gb and 87Mb,
                      – StarNamer
                      Aug 24 '12 at 18:12












                    • Yes. Ubuntu recomends 5 GB of hard-drive space minimum
                      – LnxSlck
                      Aug 24 '12 at 18:17










                    • Mine is 43 Gigabyte
                      – uvasal
                      Jul 8 '15 at 2:33













                    up vote
                    1
                    down vote










                    up vote
                    1
                    down vote









                    Mine is 142M, so i guess it's normal.



                    The reason can be because /var/lib/apt/lists/ is the storage area for state information for each package resource specified in sources.list






                    share|improve this answer












                    Mine is 142M, so i guess it's normal.



                    The reason can be because /var/lib/apt/lists/ is the storage area for state information for each package resource specified in sources.list







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Aug 24 '12 at 17:11









                    LnxSlck

                    10.2k12949




                    10.2k12949












                    • It may be so large. But this is a newly installed system@642MB. Those lists take up almost 1/6 of the space. And that is huge.
                      – thabubble
                      Aug 24 '12 at 17:24






                    • 1




                      642Mb s very small for an Ubuntu installation. My root filesystem (not including any user or data files) is 14Gb. /var/lib/apt/lists is 123Mb. On a second system the values are 5.3Gb and 87Mb,
                      – StarNamer
                      Aug 24 '12 at 18:12












                    • Yes. Ubuntu recomends 5 GB of hard-drive space minimum
                      – LnxSlck
                      Aug 24 '12 at 18:17










                    • Mine is 43 Gigabyte
                      – uvasal
                      Jul 8 '15 at 2:33


















                    • It may be so large. But this is a newly installed system@642MB. Those lists take up almost 1/6 of the space. And that is huge.
                      – thabubble
                      Aug 24 '12 at 17:24






                    • 1




                      642Mb s very small for an Ubuntu installation. My root filesystem (not including any user or data files) is 14Gb. /var/lib/apt/lists is 123Mb. On a second system the values are 5.3Gb and 87Mb,
                      – StarNamer
                      Aug 24 '12 at 18:12












                    • Yes. Ubuntu recomends 5 GB of hard-drive space minimum
                      – LnxSlck
                      Aug 24 '12 at 18:17










                    • Mine is 43 Gigabyte
                      – uvasal
                      Jul 8 '15 at 2:33
















                    It may be so large. But this is a newly installed system@642MB. Those lists take up almost 1/6 of the space. And that is huge.
                    – thabubble
                    Aug 24 '12 at 17:24




                    It may be so large. But this is a newly installed system@642MB. Those lists take up almost 1/6 of the space. And that is huge.
                    – thabubble
                    Aug 24 '12 at 17:24




                    1




                    1




                    642Mb s very small for an Ubuntu installation. My root filesystem (not including any user or data files) is 14Gb. /var/lib/apt/lists is 123Mb. On a second system the values are 5.3Gb and 87Mb,
                    – StarNamer
                    Aug 24 '12 at 18:12






                    642Mb s very small for an Ubuntu installation. My root filesystem (not including any user or data files) is 14Gb. /var/lib/apt/lists is 123Mb. On a second system the values are 5.3Gb and 87Mb,
                    – StarNamer
                    Aug 24 '12 at 18:12














                    Yes. Ubuntu recomends 5 GB of hard-drive space minimum
                    – LnxSlck
                    Aug 24 '12 at 18:17




                    Yes. Ubuntu recomends 5 GB of hard-drive space minimum
                    – LnxSlck
                    Aug 24 '12 at 18:17












                    Mine is 43 Gigabyte
                    – uvasal
                    Jul 8 '15 at 2:33




                    Mine is 43 Gigabyte
                    – uvasal
                    Jul 8 '15 at 2:33


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f179955%2fvar-lib-apt-lists-is-huge%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Ellipse (mathématiques)

                    Quarter-circle Tiles

                    Mont Emei