With zypper
, I can get package A depends on package B. However, what I need to know is which packages depend on package B.
Is there a way of generating a reverse dependency list?
Let's say you want to know who depends on libpng14
In tcsh:
zypper search -i | cut -d \| -f 2 | tr -s '\n' ' ' > z.txt
foreach i ( `cat z.txt` )
zypper info --requires $i |grep libpng14 &&echo $i
end
And you in a while, you will start getting results like:
libpng14.so.14()(64bit)
libpng14.so.14(PNG14_0)(64bit)
DirectFB
libpng14.so.14()(64bit)
libpng14.so.14(PNG14_0)(64bit)
MPlayer
You need to separate the packages from the grep messages, however.