Re: dpkg
On Thu, Aug 01, 2002 at 02:02:48PM +0200, Romuald DELAVERGNE wrote:
> Yes, good script and speed but some corrections are needed:
>
> cat /var/lib/dpkg/available | grep -E "^Depends: .*\<${1}\>[^-]" -B 9 |
> grep -E "^Package: "
>
>
> \<${1}\> to take package name as a word
> [^-] because '-' is a separator for grep and can be included in package
> name
> -B 9 because -B 7 is to small. Some packages have the 'Recommends' section.
Plain grep is always going to be a kludge for this. grep-dctrl actually
understands the format so can be much more accurate more easily.
Cheers,
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to:
- References:
- dpkg
- From: Cristi Banciu <c.banciu@bucarest.finsiel.ro>
- Re: dpkg
- From: Suraj Kumar <suraj@symonds.net>
- Re: dpkg
- From: Cristi Banciu <c.banciu@bucarest.finsiel.ro>
- Re: dpkg
- From: Romuald DELAVERGNE <delavergne@availix.fr>