Results 1 to 3 of 3
Hi,
I have 'client' in Centos 5.6 where I want to install rpm packages with:
Code:
yum install package
from repository which I created on 'server' ( Centos 6.0 ). ...
- 12-20-2011 #1Just Joined!
- Join Date
- Dec 2011
- Posts
- 2
Centos rpm/yum/repository gpg issues
Hi,
I have 'client' in Centos 5.6 where I want to install rpm packages with:
from repository which I created on 'server' ( Centos 6.0 ). I would like packages to be signed, but I get some errors while trying to get things right:Code:yum install package
firstly I had:even if I have imported my public key to client which was present in rpm keys. It was listed by running:Code:rpmts_HdrFromFdno: Header V4 RSA/SHA1 signature: BAD, key ID ebb3d90e
I deleted the signes with:Code:rpm -q gpg-pubkey gpg-pubkey-e8562897-459f07a4 gpg-pubkey-217521f6-45e8a532 gpg-pubkey-ebb3d90e-4ee5e6e8
and wanted to check if then package will be installed but I continously got:Code:rpm --delsign <package>
with or without singing the packages:Code:[Errno -1] Package does not match intended download
I found that this error might be solved by:Code:rpm -K *.rpm <package1>-1.0-1.i386.rpm: sha1 md5 OK <package2>-0.1-1.noarch.rpm: sha1 md5 OK <package3>-0.1-1.i386.rpm: sha1 md5 OK <package4>-3.6.5-1.i386.rpm: sha1 md5 OK
which cleans yum cache, which might be a problem, but in this case it didn't help.Code:yum clean all
I created repository with:
because without sha1 I had an problem with adding my repository to yum repo list:Code:createrepo -s sha1 <dir>
Packages were created on client and were signed on server.Code:[Errno -3] Error performing checksum
On client my repository configuration file /etc/yum.repos.d/my-repo.repo looks like this:
Sorry for '-' and 'at' in addresses but in this forum I am currently not allowed to post urls.Code:[myrepo] name=myrepo baseurl=h-t-t-p-s:-/-/login:pass'at'address.to.my.repo enabled=1 gpgcheck=1 gpgkey=h-t-t-p-s:-/-/login:pass'at'address.to.my.repo/MY-GPG-KEY protect=1
Any suggestions would be appreciated.
If I must learn something - all links to tutorials/guides/documentations will be also very helpful.
I spend a lot of time trying to solve this issue and many forums (I have also checked this one) and google didn't help me.
- 12-21-2011 #2
I'm not very familiar with this, but it's been a day and nobody else has been able to help yet.
I thought (and I could be wrong) that the binary rpm packages were signed at creation time, i.e. you need the packager's public key to check they are signed correctly. Have you tried with the public key of the original CentOS repo that you're copying from?Linux user #126863 - see http://linuxcounter.net/
- 12-21-2011 #3Just Joined!
- Join Date
- Dec 2011
- Posts
- 2
Thank you for replying.
As far as I know rpms are not signed during creation if I didn't explicitly want them to be signed. In the meantime I managed to make things right, but sadly without cryptography.
I discovered that:
doesn't really clean metadata, so I must have deleted signs of rpms on server and do:Code:yum clean all
on client.Code:yum clean metadata
I will try create and sign packages at the same time on server then.


Reply With Quote