How To Find Out Which Package Takes Up The Most Space In Ubuntu
To see a list of packages taking up most space on your system, run the following command in a terminal:
1 | 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:
1 | 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?

