>sudo apt-get clean # clean downloaded packages
>sudo apt-get autoclean # remove stored archives in cache
>sudo apt-get autoremove # auto remove unnecessary packages

apt-get doesn't incredibly enough have a man page but

$ apt-get --help|grep -E 'clean|autoremove'
   autoremove - Remove automatically all unused packages
   clean - Erase downloaded archive files
   autoclean - Erase old downloaded archive files

(if this was a small disk, then also localepurge might come handy, read its caveats though)

Reply via email to