List installed packages sorted by size
which packages use the most disk space | find largest installed packages debian | root partition full because of packages | dpkg-query | disk-space | packagesdpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -rn | head -n 20Queries the installed size of every installed package and sorts in descending order. The first column is the size in KiB, the second the package name. Useful when / or /usr runs low and you want to know which packages take up the most space.
Note: Old kernels (linux-image-*) often appear near the top. Do not remove them manually if the running kernel belongs to them (uname -r).
Also searched as
- which packages use the most disk space
- find largest installed packages debian
- root partition full because of packages