0

In my university exam I had this question: Find Debian package that use the most disk space.

My teammate solved this question with the following solution:

apt show ".*" | grep "Download-Size:" | cut -f2 -d" " | sort -nrk 1 | head -n 1

But I had to use "Installed-Size" because the Unit Size of Download-Size and Installed-Size is different for each package as it depends on its size and also does not identify which package the size is referring to.

Is it possible to solve this question using APT ?

EliaTolin
  • 101

0 Answers0