> > On Tue, 2002-01-15 at 22:41, William Kenworthy wrote: > > Careful ... the name differences are coz some packages require that > > specific version of libgal! rpm -e package will either do it or error > > off coz of dependencies. > > That's what I'm looking for. Something to determine which packages are > no longer required by any other packages, and let me decide if I want to > remove them or not. >
This finds packages no longer in distribution (which is not quite the same as "no longer required by any package"): for i in $(rpm -qa); do zcat /var/lib/urpmi/synthesis.* | grep @info@ | grep -q $i || echo $i done I agree that urpmi has all information to do it; so urpmi --remove-unneeded wuold be just fine. -andrej