<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">mine is far more artistic<br><br>dpkg --get-selections | head -n 1 | awk '{$1}' | echo 'randompackage'<br></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">2014-02-13 9:20 GMT+12:00 Douglas Bagnall <span dir="ltr"><<a href="mailto:douglas@halo.gen.nz" target="_blank">douglas@halo.gen.nz</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="">Hugh Davenport wrote:<br>
> dpkg --get-selections | cut -f1 | sort -R | head -1<br>
<br>
</div>dpkg-query -W | cut -f1 | sort -R | head -1<br>
<br>
<br>
dpkg-query -Wf'${Package}\n' lets you drop the `cut -f1`, but it<br>
isn't shorter.<br>
<br>
Maybe you'd prefer to talk about something you actually use:<br>
<br>
apt-cache pkgnames | sort -R | head -1<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Douglas<br>
</font></span><div class="im HOEnZb"><br>
><br>
> And some spaces could be removed around the |'s<br>
><br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">--<br>
Wellington Linux Users Group Mailing List: <a href="mailto:wellylug@lists.wellylug.org.nz">wellylug@lists.wellylug.org.nz</a><br>
To Leave:  <a href="http://lists.wellylug.org.nz/mailman/listinfo/wellylug" target="_blank">http://lists.wellylug.org.nz/mailman/listinfo/wellylug</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div>GPG: <a href="http://is.gd/signature_" target="_blank">http://is.gd/droope</a><br></div></div>
</div>