#575129 Should remove remove installed packages from /var/cache/pbuilder/aptcache

Package:
pbuilder
Source:
pbuilder
Submitter:
"Nelson A. de Oliveira"
Date:
2010-03-23 17:36:04 UTC
Severity:
wishlist
#575129#5
Date:
2010-03-23 17:33:34 UTC
From:
To:
Hi!

I always use cowbuilder (but it applies to pbuilder) like this:

cowbuilder --update --autocleanaptcache

So outdated packages are automatically removed from /var/cache/pbuilder/aptcache
But one thing that I see is that the cache also contains the packages that are
installed inside the chroot.
For example, on today's update:

Preparing to replace cpp-4.4 4.4.3-4 (using .../cpp-4.4_4.4.3-5_i386.deb) ...
(...)
I: new cache content cpp-4.4_4.4.3-5_i386.deb added
(...)
Del cpp-4.4 4.4.3-4 [3744kB]

It updated the cpp package, included the new package on the cache dir and also
removed the old cpp package.
But, what is the purpose in keeping this new cpp package inside the cache, since
it's already installed?

Essential packages (all the other ones that are installed on the minimal chroot)
should not be kept inside the cache dir (/var/cache/pbuilder/aptcache), so some
disk space could be saved.

I am asking this because I really don't see any reason to keep these packages
cached.

Thank you!

Best regards,
Nelson