See program occupies more space in Ubuntu

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:

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
Share:

3 comments:

  1. I get an error!

    ~$ 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 `('

    ReplyDelete
  2. Problem solved
    Please try again, then tell me about the result

    ReplyDelete
  3. Still does not work.

    However 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

    ReplyDelete

Popular Posts

Labels

Labels

Blog Archive

Recent Posts

Pages

Recent Comments

Top Commenters

Followers