[CentOS] rpm question

Thu Jun 15 10:56:32 UTC 2006
Rob Watkin <robwatkin at naims.co.uk>

Hi everyone,

I am writing a small tool that will compare a file on my machine with
the the same file on an rpm repository and then give me a diff.

E.g.
# rpm-file-diff /etc/samba/smb.conf

will show a diff output so that I can see at a glance what changes I
have made to my local smb.conf file. I already know about rpmdiff but
that compares whole packages and not files.

Anyway while fiddling with this I have tried "rpm -qpi
http://mirror....". Sometimes this works on my local mirror but mostly
not (see below) and I have never had it to work on sunsite.org.uk.

I know this seems really trivial but I'm worried that I don't understand
what's wrong.

Any opinions appreciated :-)

Rob Watkin

# On my local mirror
# ---------------------------------------------------------------
[root at dyn-0 ~]# rpm -qpi
http://10.1.1.12/Centos4/mirrors/centos/4.3/os/i386/CentOS/RPMS/samba-3.0.10-1.4E.6.i386.rpm
Name        : samba                        Relocations: (not
relocatable)
Version     : 3.0.10                            Vendor: CentOS
Release     : 1.4E.6                        Build Date: Wed 08 Mar 2006
13:59:28 GMT
[snip]
TCP/IP (NetBT) protocols and does NOT need the NetBEUI (Microsoft Raw
NetBIOS frame) protocol.

# 3 seconds later
#----------------------------------------------------------------
[root at dyn-0 ~]# rpm -qpi
http://10.1.1.12/Centos4/mirrors/centos/4.3/os/i386/CentOS/RPMS/samba-3.0.10-1.4E.6.i386.rpm
error:
http://10.1.1.12/Centos4/mirrors/centos/4.3/os/i386/CentOS/RPMS/samba-3.0.10-1.4E.6.i386.rpm: V3 DSA signature: BAD, key ID 443e1821

# Trying the public mirror
#----------------------------------------------------------------
[root at dyn-0 ~]# rpm -qpi
http://www.sunsite.org.uk/sites/msync.centos.org/CentOS/4.3/os/i386/CentOS/RPMS/samba-3. 0.10-1.4E.6.i386.rpm
error:
http://www.sunsite.org.uk/sites/msync.centos.org/CentOS/4.3/os/i386/CentOS/RPMS/samba-3.0.10-1.4E.6.i386.r pm: V3 DSA signature: BAD, key ID 443e1821
[root at dyn-0 ~]# rpm -qpi
http://www.sunsite.org.uk/sites/msync.centos.org/CentOS/4.3/os/i386/CentOS/RPMS/samba-3. 0.10-1.4E.6.i386.rpm
error:
http://www.sunsite.org.uk/sites/msync.centos.org/CentOS/4.3/os/i386/CentOS/RPMS/samba-3.0.10-1.4E.6.i386.r pm: V3 DSA signature: BAD, key ID 443e1821
#----------------------------------------------------------------