snipt

Ctrl+h for KB shortcuts

Bash

Show recently installed or removed packages on Debian-based distros

awk '$3 ~ /install|remove/ {print $1 " "$3 ": "$4}' /var/log/dpkg.log
https://snipt.net/embed/10e467dce45be02443a441870d3f2add/
/raw/10e467dce45be02443a441870d3f2add/
10e467dce45be02443a441870d3f2add
bash
Bash
1
2019-06-26T08:25:43
True
False
False
/api/public/snipt/36840/
show-recently-installed-or-removed-packages-on-debian-based-distros
<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>awk <span class="s1">&#39;$3 ~ /install|remove/ {print $1 &quot; &quot;$3 &quot;: &quot;$4}&#39;</span> /var/log/dpkg.log </span></pre></div> </td></tr></table>
awk, debian, dpkg, ubuntu