showing dependency trees

Björn Persson bjorn at xn--rombobjrn-67a.se
Thu Aug 27 00:05:52 UTC 2009


Rajeesh K Nambiar wrote:
> 2009/8/24 Björn Persson <bjorn at xn--rombobjrn-67a.se>:
> > That's not all that quick. There ought to be a tool for this. Given a
> > package name it should print the dependency tree for that package. It
> > could have an option to suppress packages in the base set. Couldn't Yum
> > be taught to answer that kind of queries?
>
> I'm not sure this is exactly what you want, but I was using this in my
> .bashrc:
>
> function dependencylist
> {
>     yum groupinfo Base | grep -v Packages | sed 1,12d | awk '{print
> $1}' > BaseList; yum deplist "$*" | grep provider | awk '{if("grep -q
> $2 BaseList") print $2}' | sort | uniq
> }

If I understand that function right, it lists only the direct dependencies of 
a given package, not the dependencies of the dependencies, so it won't help 
with discovering situations like the one that prompted this discussion.

Björn Persson

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20090827/f3d754ea/attachment.sig>


More information about the fedora-devel-list mailing list