� ���, 13.04.2002, � 14:21, Pixel �������:
> "Brian J. Murrell" <[EMAIL PROTECTED]> writes:
>
> > I think there was a "leaf-mode" option to urpmi (IIRC) to do something
> > like this but I found that it identified far more that packages that
> > truely were not dependencies of something else. I think it was
> > because they were implicit rather than explicit dependencies. I think
> > the leaf-mode thing depends on package a declaring with a Requires:
> > package b in order for the leaf-mode thing to work.
>
> AFAIK urpmi_rpm-find-leaves works...
No it does not. It finds leaves, i.e. those RPMs that are not Required
by others. It is not the same as RPM not needed any more.
But this two-liners gives you RPMs no more in urpmi database:
{pts/0}% for i in $(rpm -qa);do
zcat /var/lib/urpmi/synthesis.* | grep -q $i || echo $i
done
it is a good start to remove unneeded things assuming your urpmi
database is current. Do additional grep for "^lib" to find out what
libraries has been "obsolete".
-andrej