On Mon, 5 Sep 2011, Todd And Margo Chester 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.
# rpmquery --requires rpm | grep -i nss
libnss3.so()(64bit)
# rpmquery --qf "%{VENDOR} %{name}-%{version}-%{release}.%{arch}\n"
--whatprovides 'libnss3.so()(64bit)'
Scientific Linux nss-3.12.9-9.el6.x86_64
--qf is the command-line equivalent of the %_query_all_fmt variable.
--
Dr. Andrew C. Aitchison Computer Officer, DPMMS, Cambridge
a.c.aitchi...@dpmms.cam.ac.uk http://www.dpmms.cam.ac.uk/~werdna