TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:15915] Searching for DEB's



On Mon, 10 Apr 2000, ^chewie wrote:

> Try this little bash script:
> 
> ---------------------------------------------------------------------
> #!/bin/bash
> # Script: search-debs
> # Syntax: search-debs <grep matching string>
> 
> echo "Packages containing the string: ${1}"
> apt-cache dump | grep "^Package" | grep ${1} | awk '{print $2}'
> ---------------------------------------------------------------------
> 
> The command 'dpkg -l | grep <whatever>' will do some crude matching as well,
> but it won't give you the full package name.  'dpkg -l' does contain some
> description information that is nice to have.
> 
> Doing a search on a package description can be done by editing the
> /var/lib/dpkg/available file.  JUST DON'T DELETE THE FILE. ;-)  Could be bad.

...or apt-cache dumpavail.  :)

-- 
Nate Carlson <natecars@real-time.com>   | Phone : (952)943-8700
http://www.real-time.com                | Fax   : (952)943-8500