[ubuntu-in] List Of Installed Software

Abhishek Amberkar [अभिषेक] abhishek.amberkar at gmail.com
Fri Jun 18 07:37:49 BST 2010


On Fri, Jun 18, 2010 at 11:32 AM, Ramnarayan.K <ramnarayan.k at gmail.com> wrote:
> 2010/6/18 Abhishek Amberkar [अभिषेक] <abhishek.amberkar at gmail.com>:
>>> dpkg --get-selections | awk '{print "sleep 0.5 && echo" " "$1}' | bash
>>>
>>>
>>
>> Above command lists the packages which are marked "deinstall"
>>
>> As `man dpkg' says "deinstall" means
>> The package is selected for deinstallation (i.e. we want to remove all
>> files, except configuration files).
>
> not sure what you mean - cannot see deinstall mentioned anywhere in the command
>>
>> Following command gives list of all installed pacakges
>>
>> dpkg -l | grep ^i | awk '{print $2}'
>
> Did a comparision of the results of both commands
>
> the first gives me 3055 packages and the second 3084.
>
> about 29 packages more in the latter
>
> so why this difference and what does the deinstall mean ??
>

I already gave the meaning of "deinstall" in my previous posting.
(Refer `man dpkg')

If you do "$ dpkg --get-selections | grep deinstall" it shows
"deinstall" packages. If you check state of any of these packages
using "aptitude show <package_name>" it will show "not installed". So
this command doesn't really shows all the `currently' installed
packages on your system.




-- 
With Regards
Abhishek Amberkar



More information about the ubuntu-in mailing list