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:
- Follow-Ups:
- Re: dpkg
- From: Colin Watson <cjwatson@debian.org>
- 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>