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@dyn-0 ~]# rpm -qpi http://10.1.1.12/Centos4/mirrors/centos/4.3/os/i386/CentOS/RPMS/samba-3.0.10... 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@dyn-0 ~]# rpm -qpi http://10.1.1.12/Centos4/mirrors/centos/4.3/os/i386/CentOS/RPMS/samba-3.0.10... error: http://10.1.1.12/Centos4/mirrors/centos/4.3/os/i386/CentOS/RPMS/samba-3.0.10...: V3 DSA signature: BAD, key ID 443e1821
# Trying the public mirror #---------------------------------------------------------------- [root@dyn-0 ~]# rpm -qpi http://www.sunsite.org.uk/sites/msync.centos.org/CentOS/4.3/os/i386/CentOS/R.... 0.10-1.4E.6.i386.rpm error: http://www.sunsite.org.uk/sites/msync.centos.org/CentOS/4.3/os/i386/CentOS/R... pm: V3 DSA signature: BAD, key ID 443e1821 [root@dyn-0 ~]# rpm -qpi http://www.sunsite.org.uk/sites/msync.centos.org/CentOS/4.3/os/i386/CentOS/R.... 0.10-1.4E.6.i386.rpm error: http://www.sunsite.org.uk/sites/msync.centos.org/CentOS/4.3/os/i386/CentOS/R... pm: V3 DSA signature: BAD, key ID 443e1821 #----------------------------------------------------------------
On Thu, 2006-06-15 at 11:56 +0100, Rob Watkin wrote:
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
<snip>
Any opinions appreciated :-)
Well, I'm new at this stuff, so no opinion. But I have a Q, based on things that I bumped into as I began up this arduous road. I'll keep you breathlessly in suspense by saying "see below"! :-)
Rob Watkin
# On my local mirror # --------------------------------------------------------------- [root@dyn-0 ~]# rpm -qpi http://10.1.1.12/Centos4/mirrors/centos/4.3/os/i386/CentOS/RPMS/samba-3.0.10... 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@dyn-0 ~]# rpm -qpi http://10.1.1.12/Centos4/mirrors/centos/4.3/os/i386/CentOS/RPMS/samba-3.0.10... error: http://10.1.1.12/Centos4/mirrors/centos/4.3/os/i386/CentOS/RPMS/samba-3.0.10...: V3 DSA signature: BAD, key ID 443e1821
For the above and subsequent, I had something *similar* (memory unclear) when I had not imported the GPG keys into rpm yet. Could be your issue? I recall that the CentOS sites had instructions and the man for rpm also tells how. IIRC, there are a couple public key sites that seem to have all the keys. I've used these two.
wwwkeys.pgp.net hkp://subkeys.pgp.net
<snip>
HTH
On Thu, 2006-06-15 at 09:07 -0400, William L. Maltby wrote:
On Thu, 2006-06-15 at 11:56 +0100, Rob Watkin wrote:
http://10.1.1.12/Centos4/mirrors/centos/4.3/os/i386/CentOS/RPMS/samba-3.0.10...: V3 DSA signature: BAD, key ID 443e1821
For the above and subsequent, I had something *similar* (memory unclear) when I had not imported the GPG keys into rpm yet. Could be your issue? I recall that the CentOS sites had instructions and the man for rpm also tells how. IIRC, there are a couple public key sites that seem to have all the keys. I've used these two.
wwwkeys.pgp.net hkp://subkeys.pgp.net
Thanks for your input.
I initially thought that I hadn't imported the keys too, so I checked with
# rpm -qa |grep key gpg-pubkey-443e1821-421f218f
and I think that's OK. I have tried this on two machines both of which are up-to-date with yum. Funny thing is it works 4 times out of 10 against my own local Centos mirror.
Rob
On Thu, 2006-06-15 at 15:54 +0100, Rob Watkin wrote:
On Thu, 2006-06-15 at 09:07 -0400, William L. Maltby wrote:
On Thu, 2006-06-15 at 11:56 +0100, Rob Watkin wrote:
http://10.1.1.12/Centos4/mirrors/centos/4.3/os/i386/CentOS/RPMS/samba-3.0.10...: V3 DSA signature: BAD, key ID 443e1821
For the above and subsequent, I had something *similar* (memory unclear) when I had not imported the GPG keys into rpm yet.
<snip>
I initially thought that I hadn't imported the keys too, so I checked with
# rpm -qa |grep key gpg-pubkey-443e1821-421f218f
Mine shows similar. I have 6 instances and all of mine have ".(none)" added to the end. I don't know if this is important.
<snip>
Rob
<snip sig stuff>
I think you'll need one of the more experienced users to help. Hmm. I do recall seeing Occasional problems of various types when mirrors and stuff were getting updated. But then your problem should not be so consistent.
BTW, while doing "man rpm", encountered these, that seem useful. For example, all currently imported public keys can be displayed by:
rpm -qa gpg-pubkey*
Details about a specific public key, when imported, can be displayed by querying. Here’s information about the Red Hat GPG/DSA key:
rpm -qi gpg-pubkey-db42a60e
Finally, public keys can be erased after importing just like packages. Here’s how to remove the Red Hat GPG/DSA key
rpm -e gpg-pubkey-db42a60e
HTH