One of the fallouts of all of the recent library restructuring et. al
is that I have extraneious "leftover" unused packges on my system.
Take for example gmp. I have a system here with the following:
# rpm -q libgmp3 gmp
libgmp3-3.1.1-3mdk
gmp-2.0.2-16mdk
Yet the package "gmp" does not any longer seem to be a valid package
in either Cooker or 8.0.
I want to rid my system of all of these obsolete packages but am not
sure the best way to go about it. I was thinking something like:
rpm -qa --queryformat "%{NAME} %{VERSION} %{RELEASE}\n" |
while read pkg ver rel; do
if ! urpmq $pkg &>/dev/null; then
echo $pkg
fi
done
should work.
Is this the best/right way to go about this or is there any better
ways?
b.
--
Brian J. Murrell