snipt

Ctrl+h for KB shortcuts

Bash

sort installed debian packages by size

dpkg-query -W -f='${Installed-Size} ${Package}\n' | sort -n
https://snipt.net/embed/328c1af5ed831137641d4d19e9f5853c/
/raw/328c1af5ed831137641d4d19e9f5853c/
328c1af5ed831137641d4d19e9f5853c
bash
Bash
1
2019-07-17T02:59:08
True
False
False
/api/public/snipt/4246/
sort-installed-debian-packages-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, dpkg