Re: dpkg
On Jo, 2002-08-01 at 13:31, Suraj Kumar wrote:
> Use /var/lib/dpkg/available itself... This shell
> script might help..
> **
> #! /bin/bash
>
> if [ -n "$1" ]; then
> cat /var/lib/dpkg/available | grep -E "^Package: ${1}$" -A 12 | grep
> -E "Depends: "
> else
> echo "Usage: `basename $0` <package>"
> fi
> **
this script helped me build the script I needed :)
cat /var/lib/dpkg/available | grep -E "^Depands: ${1}$" -B 7 | grep
-E "^Package: "
Reply to:
- Follow-Ups:
- Re: dpkg
- From: Suraj Kumar <suraj@symonds.net>
- Re: dpkg
- From: Romuald DELAVERGNE <delavergne@availix.fr>
- References:
- dpkg
- From: Cristi Banciu <c.banciu@bucarest.finsiel.ro>
- Re: dpkg
- From: Suraj Kumar <suraj@symonds.net>