Clean Ubuntu and find large packages

While working on a wireless kiosk using Ubuntu, I had the need to shrink the Ubuntu installation. Part of creating a custom install, using remastersys, is creating a live CD iso image.

I did, of course, remove the unnecessary software and programs like the games and cd burning software (see and I ran several commands including localpurge and deborphan (see ).

The one thing I wanted to do was to find large packages installed on the system. I then read about dpigs, which is part of the debian-goodies package (see This is a great tool that lists the top 10 largest packages. I was able to clean several hundred megabytes from the system by looking at the packages and removing them.

Using dpigs, I brought the custom installation CD size down to 519 MB from over 700 MB without losing any additional functionality.