Saturday, November 24, 2012

List packages by installed size (Debian, Ubuntu)

Ever want to find out which packages on your Debian-based Linux system are taking up the most space? Want to list them by size? use this command

$ dpkg-query -W -f='${Installed-Size} ${Package} ${Version}\n' | sort -n
Today I installed Ubuntu 13.04 ("Raring Ringtail"). It should be called "Retarded Ricky", because even Ricky from the Trailer Park Boys would be able to use this, and in fact, only Ricky would be satisfied with it.

This version of Ubuntu, like the previous one, comes with Unity is installed. Unity < windows 95.

So, let's fix this rotten piece of crap and turn it into something usable. I never thought I'd have to uninstall bloatware from an Ubuntu system...

# apt-get install -y vim lynx byobu


let's look at the package list and see what I don't need.

# dpkg -l



# apt-get --purge remove bluez branding-ubuntu brltty empathy evolution-data-server evolution-data-server-common gwibber libreoffice radeontool remmina rhythmbox unity*


# apt-get install jwm afterstep gnome-themes-extras


Well, after logging out the graphics system refuses to start. Guess I'll just stick to Windows 95 for now.