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

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: