Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I 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?

Thanks

share|improve this question
add comment

3 Answers 3

up vote 4 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
add comment

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
    
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 . –  AgentCool Aug 24 '12 at 18:32
add comment

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
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.