In regard to: Re: Tracking dependencies, Mischa Aizatulin said (at 11:28pm...:
Since --whatrequires and --whatprovides don't seem to do what I want I
usually do a -e --test
Thanks! Though it's not quite what I need: this shows packages that depend
on package X and I would like to view packages that X itself depends on.
05:09 PM dogbert X11$rpm -q -f gimp-2.2
gimp-2.2.1-1
05:09 PM dogbert X11$for r in `rpm -q --requires gimp`
do
rpm -q --whatprovides "$r"
done
no package provides /bin/sh
no package provides /bin/sh
no package provides libICE.so
no package provides libSM.so
no package provides libX11.so
no package provides libXmu.so
xpm-3.4k-5
no package provides libXt.so
libart_lgpl-2.3.11-1
atk-1.9.0-1
no package provides libc.so(osf.1)
libcroco-0.5.1-1
no package provides libcurses.so(xpg4)
libexif-0.5.9-1
expat-1.95.8-1
fontconfig-2.2.95-1
freetype-2.1.9-1
gtk+-2.6.8-1
gtk+-2.6.8-1
gimp-2.2.1-1
gimp-2.2.1-1
gimp-2.2.1-1
gimp-2.2.1-1
gimp-2.2.1-1
gimp-2.2.1-1
gimp-2.2.1-1
gimp-2.2.1-1
glib-2.6.5-1
glib-2.6.5-1
glib-2.6.5-1
libgsf-1.9.1-1
gtk+-2.6.8-1
libgtkhtml-2.6.0-1
no package provides libiconv.so(osf.1)
gettext-0.14.4-1
jpeg-6b-2
lcms-1.14-1
no package provides libm.so(osf.1)
libmng-1.0.7-1
pango-1.8.1-1
pango-1.8.1-1
pango-1.8.1-1
pango-1.8.1-1
libpng-runtime-1.2.8-1
librsvg-2.7.1-1
tiff-3.7.2-1
libwmf-0.2.8.3-1
libwmf-0.2.8.3-1
libxml2-2.6.15-1
zlib-1.2.2-1
Add a `sort -u' outside the loop, and you have your answer.
Tim
--
Tim Mooney mooney@xxxxxxxxxxxxxxxxxxxxxxxxx
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164