Powered By

Powered by Blogger

Jumat, 13 November 2009

How To Find Out Which Package Takes Up The Most Space In Ubuntu [Quick Tip]

To see a list of packages taking up most space on your system, run the following command in a terminal:
dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' | sort -k 2 -n | grep -v deinstall | awk '{printf "%.3f MB \t %s\n", $2/(1024), $1}'


If you only want to see the 10 biggest packages, use the tail -n 10 command, like so:

dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' | sort -k 2 -n | grep -v deinstall | awk '{printf "%.3f MB \t %s\n", $2/(1024), $1}' | tail -n 10


What's the biggest package on your system?

Tidak ada komentar:

Posting Komentar