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

Re: dpkg



Le 2002.08.01 12:58, Cristi Banciu a écrit :
this script helped me build the script I needed :)
   cat /var/lib/dpkg/available | grep -E "^Depands: ${1}$" -B 7 | grep
-E "^Package: "


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.

Romuald.



Reply to: