[ILUG] How to list :Opensuse 10.2 installed rpms
Darragh Bailey
felix at compsoc.nuigalway.ie
Tue Dec 12 17:04:58 GMT 2006
On Tue, Dec 12, 2006 at 12:57:15PM +0000, Frank Murphy wrote:
> This was the puppy.
> rpm -qa | head | xargs rpm -qi --whatrequires
>
> had to drop "-10" to test
> Gave me a list of prms not owned by anything
Unless the rpm implementation in Suse is very different to RedHat's its
not quite that simple to work out what rpms are not required.
One of the problems with dependency resolution with rpms is that an rpm
may provide a library and that library may be required by a another
package, but the rpm query will not pick this up.
rpmA provides libA
rpmB requires libA
rpm -q --whatrequires rpmA
will not return rpmB
for that you need
rpm -q --whatrequires libA
For each package in the list generated, you need to query the rpmdb for
what they provide and then for each of those check that no package
requires them.
--
Darragh
"Nothing is foolproof to a sufficently talented fool."
More information about the ILUG
mailing list