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

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



On Sun, 27 Jun 2010 13:27:14 -0700, "giovanni_re" <john_re@fastmail.us> said:
> Note:  One way might be to:
> 1) Do the apt-cache search <packagename>
> 2) For each line
> 2a) Pull out the package name
> 2b) Write an apt-cache search for that name only to a temp file

Er, that should have been a "dpkg -l" command, like this:
> 2b) Write a "dpkg -l" command for that name only to a temp file


> 3) Do the dpkg -l 's from the file
> 3b) & remove from the output all the dpkg heading info, leaving only the
> package status lines.
> 
> Can you get that mashup?  Thanks :)


Reply to: