Computer Tips - rpm: What other packages need/use this package?

Date: 2010jun29 OS: Linux Language: bash Product: rpm Keywords: uses, depends Q. rpm: What other packages need/use this package? A. You need to see what capabilities the package gives and then what packages use those. Save this script as /usr/local/bin/rpm-what-uses
#!/bin/sh PACKAGE=$1 ( echo $PACKAGE rpm -q --provides $PACKAGE ) | while read CAP; do rpm -q --whatrequires "$CAP" done | grep -v 'no package requires'
Example use:
rpm-what-uses curl