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 #----------------------------------------------------------------
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 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 >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 -- Bill -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20060615/e8601929/attachment-0002.sig>
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-1.4E.6.i386.rpm: 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.netThanks 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