I encounter a strange command to see Ubuntu programs which are occupying more space. And that is that? As a curious and perhaps also some discover that they have a heavy agenda and could no longer use uninstall and save disk space
The command is this:
The command is this:
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
3 Comments
I get an error!
ReplyDelete~$ 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
bash: syntax error near unexpected token `('
Problem solved
ReplyDeletePlease try again, then tell me about the result
Still does not work.
ReplyDeleteHowever this works:
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