[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg/apt voodoo to ask "what version of <pkg> is installed, if any?"



On Jo, 13 sep 12, 06:05:51, Tom H wrote:
> 
> [root:~]# aptitude search '?virtual' | grep awk
> v   awk                             -
> v   awk:i386                        -
> [root:~]# aptitude search '?installed' | grep awk
> i A gawk                            - GNU awk, a pattern scanning and processing
> i   mawk                            - a pattern scanning and text processing lan
> [root:~]#

Why grep (and root)?

$ aptitude search '?installed(awk)'
i A gawk                            - GNU awk, a pattern scanning and processing
i A mawk                            - a pattern scanning and text processing lan

For the OP: have a look at aptitude's search patterns, you might be able 
to find something useful there ;)

Kind regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic

Attachment: signature.asc
Description: Digital signature


Reply to: