Those are a few seriously capable command line guys. Hats off to you and to the OP for asking. Wish I had spent some time learning DOS and the Linux Command Line.<br><br clear="all">Regards<br><br>Narendra Diwate<br><br><br>


<br><br><div class="gmail_quote">2010/6/18 Abhishek Amberkar [अभिषेक] <span dir="ltr">&lt;<a href="mailto:abhishek.amberkar@gmail.com">abhishek.amberkar@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im">On Fri, Jun 18, 2010 at 11:32 AM, Ramnarayan.K &lt;<a href="mailto:ramnarayan.k@gmail.com">ramnarayan.k@gmail.com</a>&gt; wrote:<br>
&gt; 2010/6/18 Abhishek Amberkar [अभिषेक] &lt;<a href="mailto:abhishek.amberkar@gmail.com">abhishek.amberkar@gmail.com</a>&gt;:<br>
&gt;&gt;&gt; dpkg --get-selections | awk &#39;{print &quot;sleep 0.5 &amp;&amp; echo&quot; &quot; &quot;$1}&#39; | bash<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Above command lists the packages which are marked &quot;deinstall&quot;<br>
&gt;&gt;<br>
&gt;&gt; As `man dpkg&#39; says &quot;deinstall&quot; means<br>
&gt;&gt; The package is selected for deinstallation (i.e. we want to remove all<br>
&gt;&gt; files, except configuration files).<br>
&gt;<br>
&gt; not sure what you mean - cannot see deinstall mentioned anywhere in the command<br>
&gt;&gt;<br>
&gt;&gt; Following command gives list of all installed pacakges<br>
&gt;&gt;<br>
&gt;&gt; dpkg -l | grep ^i | awk &#39;{print $2}&#39;<br>
&gt;<br>
&gt; Did a comparision of the results of both commands<br>
&gt;<br>
&gt; the first gives me 3055 packages and the second 3084.<br>
&gt;<br>
&gt; about 29 packages more in the latter<br>
&gt;<br>
&gt; so why this difference and what does the deinstall mean ??<br>
&gt;<br>
<br>
</div>I already gave the meaning of &quot;deinstall&quot; in my previous posting.<br>
(Refer `man dpkg&#39;)<br>
<br>
If you do &quot;$ dpkg --get-selections | grep deinstall&quot; it shows<br>
&quot;deinstall&quot; packages. If you check state of any of these packages<br>
using &quot;aptitude show &lt;package_name&gt;&quot; it will show &quot;not installed&quot;. So<br>
this command doesn&#39;t really shows all the `currently&#39; installed<br>
packages on your system.<br>
<br>
<br>
<br>
<br>
--<br>
With Regards<br>
<font color="#888888">Abhishek Amberkar<br>
</font><div><div></div><div class="h5"><br>
--<br>
ubuntu-in mailing list<br>
<a href="mailto:ubuntu-in@lists.ubuntu.com">ubuntu-in@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-in" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-in</a><br>
</div></div></blockquote></div><br>