On Mon, Sep 5, 2011 at 6:47 PM, Todd And Margo Chester < toddandma...@gmail.com> wrote:
> On 09/05/2011 03:17 PM, Andrew Z wrote: > > > On Mon, Sep 5, 2011 at 5:13 PM, Todd And Margo Chester < > toddandma...@gmail.com> wrote: > >> On 09/05/2011 12:55 PM, Andrew Z wrote: >> >> >> >> On Mon, Sep 5, 2011 at 3:53 PM, Andrew Z <form...@gmail.com> wrote: >> >>> >>> On Mon, Sep 5, 2011 at 3:49 PM, Todd And Margo Chester < >>> toddandma...@gmail.com> wrote: >>> >>>> Hi Guys, >>>> >>>> I am looking at the dependencies for the "rpm" package >>>> >>>> #yum deplist rpm >>>> #rpm -q --requires rpm >>>> >>>> Yum gives me >>>> dependency: libnss3.so >>>> provider: nss.i386 3.12.8-1.el5.centos >>>> provider: nss.i386 3.12.8-4.el5_6 >>>> >>>> rpm just gives me libnss3.so. >>>> >>>> Is there a way to get rpm to tell me the provider like yum does? >>>> >>>> Many thanks, >>>> -T >>>> >>> >>> i think so . you need to put vendor etc into your .rpmmacros file... it >>> was on Centos FAQs site somewhere. >>> >> >> Here are the goodies: >> >> http://wiki.centos.org/TipsAndTricks/YumAndRPM#head-863c703185b8f37d716f15e2a25393813ccf155c >> >> >> Hi Andrew, >> >> $ more .rpmmacros >> %_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch} >> >> $ rpm -q --requires rpm | grep -i nss >> libnss3.so >> libnssutil3.so >> >> I think I am missing something. >> >> -T >> >> > > mmm. upsetting... i think rpm reads the rpms' section, but yum does some > extra lookups... > sorry that was the only trick i could think of. > > No problem. I really appreciate the help! > > -T > I'm not sure if you read my other thread. But there Garrett replied with the following statement: [quote] gholms@lux ~ % rpm -q --provides libxklavier.x86_64 | sed 's/=.*//' | xargs rpm -q --whatrequires | sort | uniq control-center-2.28.1-25.el6.x86_64 gdm-2.30.4-21.el6_0.1.x86_64 gnome-applets-2.28.0-7.el6.x86_64 gnome-screensaver-2.28.3-8.el6.x86_64 gnome-settings-daemon-2.28.2-11.el6.x86_64 kdebase-workspace-4.3.4-19.el6.x86_64 libgnomekbd-2.28.2-2.el6.x86_64 libxklavier-4.0-7.el6.x86_64 no package requires libxklavier(x86-64) [/quote] maybe this is what you are looking for .... yet, when i ran : [code] [root@toshiba ~]# rpm -q --provides rpm |sed 's/=.*//' | xargs rpm -q --whatrequires | sort | uniq createrepo-0.9.8-4.el6.noarch kde-filesystem-4-30.1.el6.noarch man-1.6f-29.el6.x86_64 no package requires rpm(x86-64) policycoreutils-2.0.83-19.8.el6_0.x86_64 python-meh-0.11-1.el6.noarch rpm-4.8.0-16.el6.x86_64 rpm-build-4.8.0-16.el6.x86_64 rpm-libs-4.8.0-16.el6.x86_64 rpm-python-4.8.0-16.el6.x86_64 yum-3.2.29-17.el6.noarch [/code] while : [code] [root@toshiba ~]# yum deplist rpm | grep provider: | awk '{print $2 }' | sort | uniq bash.x86_64 bzip2-libs.x86_64 coreutils.x86_64 curl.x86_64 db4-utils.x86_64 db4.x86_64 elfutils-libelf.x86_64 file-libs.x86_64 glibc.i686 glibc.x86_64 libacl.x86_64 libcap.x86_64 libselinux.x86_64 lua.x86_64 nss.x86_64 popt.i686 popt.x86_64 rpm-libs.x86_64 xz-libs.x86_64 zlib.x86_64 [/code]