[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 Thu, Sep 13, 2012 at 12:59 PM, Andrei POPESCU
<andreimpopescu@gmail.com> wrote:
> 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

root because I happened to be logged in as root; sorry.

grep because I don't think that the search would work for other
virtual packages that don't share 3 of 4 letters with the real
packages that provide it. Do they?


Reply to: