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"><<a href="mailto:abhishek.amberkar@gmail.com">abhishek.amberkar@gmail.com</a>></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 <<a href="mailto:ramnarayan.k@gmail.com">ramnarayan.k@gmail.com</a>> wrote:<br>
> 2010/6/18 Abhishek Amberkar [अभिषेक] <<a href="mailto:abhishek.amberkar@gmail.com">abhishek.amberkar@gmail.com</a>>:<br>
>>> dpkg --get-selections | awk '{print "sleep 0.5 && echo" " "$1}' | bash<br>
>>><br>
>>><br>
>><br>
>> Above command lists the packages which are marked "deinstall"<br>
>><br>
>> As `man dpkg' says "deinstall" means<br>
>> The package is selected for deinstallation (i.e. we want to remove all<br>
>> files, except configuration files).<br>
><br>
> not sure what you mean - cannot see deinstall mentioned anywhere in the command<br>
>><br>
>> Following command gives list of all installed pacakges<br>
>><br>
>> dpkg -l | grep ^i | awk '{print $2}'<br>
><br>
> Did a comparision of the results of both commands<br>
><br>
> the first gives me 3055 packages and the second 3084.<br>
><br>
> about 29 packages more in the latter<br>
><br>
> so why this difference and what does the deinstall mean ??<br>
><br>
<br>
</div>I already gave the meaning of "deinstall" in my previous posting.<br>
(Refer `man dpkg')<br>
<br>
If you do "$ dpkg --get-selections | grep deinstall" it shows<br>
"deinstall" packages. If you check state of any of these packages<br>
using "aptitude show <package_name>" it will show "not installed". So<br>
this command doesn't really shows all the `currently' 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>