#!/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
#!/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