[ILUG] How to list :Opensuse 10.2 installed rpms

Pádraig Brady P at draigBrady.com
Tue Dec 12 12:25:31 GMT 2006


Frank Murphy wrote:
> Is this possible?
> 
> Be able to list all installed rpm(s), their dependencies, and common
> name if possible. (and are they used/necessary)
> 
> 
> rpm -qa|xargs rpm -i --whatrequires
> 
> Am I close with above?

Note sure what you want to do. How about:

rpm -q -a --qf '%{NAME}\n' |
while read package; do
    echo "===== $package ====="
    rpm -q --whatrequires $package
done

Pádraig.



More information about the ILUG mailing list