snipt

Ctrl+h for KB shortcuts

Bash

Show installed Debian packages sorted by size

dpkg-query -W -f='${Installed-Size} ${Package}\n' | sort -n
https://snipt.net/embed/9fcc084bb02f57627c9e76fa8ff3c636/
/raw/9fcc084bb02f57627c9e76fa8ff3c636/
9fcc084bb02f57627c9e76fa8ff3c636
bash
Bash
1
2019-07-15T22:00:13
True
False
False
/api/public/snipt/4920/
show-installed-debian-packages-sorted-by-size
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>dpkg-query -W -f<span class="o">=</span><span class="s1">&#39;${Installed-Size} ${Package}\n&#39;</span> <span class="p">|</span> sort -n </span></pre></div> </td></tr></table>
bash, deb, debian, dpkg, sort