RPM query results?

Matt Graham danceswithcrows at usa.net
Sat Mar 20 11:56:01 MST 2010


After a long battle with technology, Kurt Granroth wrote:
> rpm -q --queryformat "%{name}\n" --specfile project.spec
> I run this on three CentOS 5 systems.  Two are x86_64 and one is i386. 
> I don't know for sure that all three systems are running the same point 
> version of CentOS5 

> Remote x86_64 system:
> project132-1.3.2-%{dist}
> project132

> Local i386 system:
> project132
> project132-debuginfo

> It's the *same* spec file on all three!  So what is causing them to give 
> different results?  In particular, why does one give a -debuginfo 
> version and the other a '-%{dist}' version?

*debuginfo is usually built as a separate RPM in the spec files I've seen.  
You can install it, or not, depending on if you'll be debugging the package 
that it's associated with.  It's not that useful in production AFAICT.

> I can provide the actual spec file in question, but not immediately. 
> I'm hoping, at this point, that somebody will just *know* the answer.

The version# thing is a bit odd.  My first guess would be that the packages 
were built with *slightly* different spec files, actually.  None of the RPMs 
I've built do this though.  However, I'm very serious about ++ing the last 
version number in the release every time I change the spec file and rebuild 
the RPM.

-- 
   I will rule you all with my iron fist.  YOU!  Obey the fist!
   --Invader Zim
  My blog: http://crow202.org/wordpress/
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see


More information about the PLUG-discuss mailing list