Listing installed packages in Debian Sarge

Meng Cheah meng-D1t3LT1mScs at public.gmane.org
Mon Nov 20 13:11:28 UTC 2006


Tim Writer wrote:

>Meng Cheah <meng-D1t3LT1mScs at public.gmane.org> writes:
>
>  
>
>>Hi
>>
>>I'm checking out a Debian Sarge system.
>>I'm running the commands below to find out what packages are installed.
>>
>>apt-cache pkgnames --installed
>>less /var/lib/dpkg/available
>>dpkg -l
>>
>>Any suggestions, alternatives or gotchas as to the above?
>>I understand that dpkg -l displays installed packages as well as removed
>>packages.
>>
>>How do I show only the installed packages?
>>    
>>
>
>If I'm reading the output of "dpkg -l" correctly, you're only interested in
>lines where the second character is "i":
>
>   dpkg -l | grep '^.i'
>
>  
>
Thanks to all that replied.

I had no details on the system and am checking it out.
Thanks again.

Meng Cheah
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list