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

Re: mashup "apt-cache search <SearchTerm>" & "dpkg -l" - HowTo? ; jor



On 6/26/2010 6:55 PM, Aaron Toponce wrote:
> On 6/26/2010 5:57 PM, giovanni_re wrote:
>> Is there a way to mashup "apt-cache search <SearchTerm>" & "dpkg -l" 
>> - so that given a SearchTerm, 
>> it would find all the related package names in the cache, 
>> then do a "dpkg -l" on those package names?
> 
> dpkg -l $(apt-search iceweasel|grep ^i|awk '{print $2}'|tr '\n' ' ')

Actually, looking at that command, I'm sure I could combine the grep,
awk and tr in a single awk command. This was just "quick and dirty". Of
course, replace 'iceweasel' with the package(s) you are searching for.

-- 
. O .   O . O   . . O   O . .   . O .
. . O   . O O   O . O   . O O   . . O
O O O   . O .   . O O   O O .   O O O

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: