Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I'm trying to customize a LiveCD, but I can't manage to fit it on a normal CD. So I investigated, and came across a few files of which I don't know if it's safe to remove them.

Maybe you can help me there?
I don't care if the files get recreated every time, as I remove them just before I start packing everything into a new ISO. So it'll still save me some space.

The files:

  • /var/cache/apt-xapian-index/index.1/postlist.DB
    • This file seems pretty useless to me, and it keeps growing every time. It's now at a 38MB, while I could have sworn it was only 27MB the last time I checked.
  • /var/cache/apt-xapian-index/index.1/termlist.DB
    • Same story as postlist.DB.
  • The files in /var/lib/apt/lists/
    • Seems to me that those are cached files which get automatically recreated when you run apt-get update, is this correct? I don't really dare to remove them unless I'm sure in case I break something. All those files together are about 50MB.
  • /boot/initrd.img-3.0.0-12-generic
    • I'm not at all sure of this one... But doesn't this file get automatically created when the user installs the system to his hard drive? I thought the initrd.lz file in the casper directory inside the ISO already contained the initrd stuff to boot the liveCD.
  • /var/cache/debconf/templates.dat
    • Doesn't this automatically get recreated when some runs apt-get update?
  • The rest of the files inside /var/cache/apt-xapian-index/index.1
    • Aren't they all cache files which automatically get recreated?

You don't have to tell me about all the files in one answer. But if you know one or more of them, I'd be grateful if you told me.

share|improve this question

1 Answer 1

You can remove cache files .. they are created when you update or install some files through apt...& it is recommended from my side..don't edit anything inside /boot folder .

share|improve this answer
... Lucky I had a backup. –  RobinJ Dec 12 '11 at 16:11
then, why do *buntu ISOs come with many files (more than 100MB) in /var/cache ? –  LovinBuntu Nov 29 '14 at 17:54

Your Answer


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.