[ATrpms-users] kmdl rpm naming problem in rpm db

Axel Thimm Axel.Thimm at ATrpms.net
Wed Oct 12 11:50:35 CEST 2011


On Wed, 2011-10-05 at 15:10 +0100, Matthew Richardson wrote:
> I've just tried to install an atrpms  drbd-kmdl rpm on 64-bit SL6
> (drbd-kmdl-2.6.32-131.12.1.el6.x86_64-8.4.0-31.el6.x86_64.rpm)
> 
> The rpm installs successfully, but I then see odd behaviour from the rpm
> database.
> 
> If I split the name as queried from the database, I see the following:
> 
> ]$ rpm -qa --queryformat '%{NAME}\n%{VERSION}\n%{RELEASE}\n' | grep
> drbd-kmdl
> 
> drbd-kmdl-2.6.32-131.12.1.el6.x86_64
> 8.4.0
> 31.el6
> 
> However, if I then try to query that rpm based on the name field, I see:
> 
> ]$ rpm -q drbd-kmdl-2.6.32-131.12.1.el6.x86_64
> package drbd-kmdl-2.6.32-131.12.1.el6.x86_64 is not installed
> 
> The name by which it does appear when queried is:
> 
> ]$ rpm -q drbd-kmdl-2.6.32-131.12.1.el6.x86_64.x86_64
> drbd-kmdl-2.6.32-131.12.1.el6.x86_64-8.4.0-31.el6.x86_64
> 
> 
> 
> I don't know if this is an issue with the rpm itself, or a bug in
> rpmlib.  Any suggestions as to what might be causing this?

It looks funny indeed. Perhaps EL6's rpm is overzealous in parsing the
input. Do you need to query with rpm -q? A workaround would be to query
with rpm -qa ...\* | grep ...

You can test whether this bug is in the rpm binary or rpmlib by using
the python wrappers.
-- 
http://thimm.gr/ - http://ATrpms.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.atrpms.net/pipermail/atrpms-users/attachments/20111012/52a5a55f/attachment.sig>


More information about the atrpms-users mailing list