[ubuntu-in] List Of Installed Software
Hardik Dalwadi
hardik.dalwadi at ubuntu.com
Fri Jun 18 07:18:09 BST 2010
On Friday 18 June 2010 11:02 AM, Abhishek Amberkar [अभिषेक] wrote:
> On Fri, Jun 18, 2010 at 2:52 AM, Saikiran Madugula
> <hummerbliss at gmail.com> wrote:
>> On 17/06/10 20:49, vikash agrawal wrote:
>>> I want my computer to display all my installed software one by on after
>>> interval of 1/2sec??? what to do???
>>
>> 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).
From `man dpkg` :: About "--get-selections"
+++
--get-selections [package-name-pattern...]
Get list of package selections, and write it to stdout. Without a
pattern, non-installed packages (i.e. those which have been previously
purged) will not be shown.
+++
So, we can re-write above unique solution :):
+++
dpkg --get-selections | grep -v "deinstall" | awk '{print "sleep 0.5 &&
echo" " "$1}' | bash
+++
This is something came as alternative in my mind:
+++
for i in `dpkg --get-selections | grep -v "deinstall" | cut -f1`; do
sleep 0.5; echo $i; done
+++
> Following command gives list of all installed pacakges
>
> dpkg -l | grep ^i | awk '{print $2}'
Above is also true, Here is v2 in response to original question:
+++
dpkg -l | grep "^ii" | awk '{print "sleep 0.5 && echo" " "$2}' | bash
+++
Alternatively:
+++
for i in `dpkg -l | grep "^ii" | cut -f3 -d" "`; do sleep 0.5; echo $i; done
+++
--
Hardik Dalwadi
More information about the ubuntu-in
mailing list