Re: generate a dependencies list
On Mon, May 12, 2003 at 08:28:01PM -0300, Pablo Lorenzzoni wrote:
> Hello!
>
> I was wondering... how to generate a list of dependencies of a given package?
>
> dpkg --status <package> | grep "^Depends" get only the installed ones
>
> apt-cache depends <package> | Grep "Depends" gives the names of the virtual
> packages, whose dependencies I cannot determine.
>
> I am kind of stuck... can somebody help me? The solution should be easy enough
> to be used in a script.
>
Try 'apt-cache depends PkgName' and you should get a list of the
dependancies. I am not entirely sure how you can manipulate the results.
Luck,
--
Matthew P. McGuire <gray AT shadowglade.net> 1024D/E21C0E88
CB82 7859 26B2 95E3 1328 5198 D57A D072 E21C 0E88
When choice matters, choose Debian.
Reply to: