This tip (http://ubuntuforums.org/showthread.php?t=564301) from the
Ubuntu forums shows how to make apt delete the debs immediately after
installation:
"At the moment, the server machine itself will go downloading its own
packages, rather than reusing those in the cache. To fix this, use the
same proxy setup as used above on the clients, using "localhost" as the
hostname.
The final step is optional, but it will help you free up space. The
server is currently maintaining two caches: the regular apt one, and the
shared cache.
NOTE: If you omit this step, APT will keep building its own cache. This
may be of benefit to you when you uninstall apt-cacher if have limited
bandwidth, but APT's operation will not be affected.
If your server uses Synaptic at all, there's an option under Settings ->
Preferences -> Files to delete packages after installation. Thanks to
Skip Da Shu for pointing this out to me.
This will only apply (in Ubuntu and Xubuntu) to packages fetched through
the GUI. It will not work in Kubuntu, and will not work from the command
line. For a more universal solution, enter the following command:"
echo 'DPkg::Post-Invoke {"/bin/rm -f /var/cache/apt/archives/*.deb ||
true";};' | sudo tee /etc/apt/apt.conf.d/clean
"This command is carried out just before APT quits, and will clean the
cache of any .deb files. Thanks to bugmenot_user for this command."
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]