createrepo: how to produce on Fedora12 a repository for CentOS5.4 and use it on CentOS

Ralf Corsepius rc040203 at freenet.de
Fri Jan 29 13:44:51 UTC 2010


On 01/29/2010 02:00 PM, Dario Lesca wrote:
> Hi, it's possible on Fedora12 create a repository for Centos5.4?
>
> I have tried to generate on my notebook with Fedora12 a yum repo for
> Centos and use it on CentOS system, but I get this error:
>
>> local-updates/primary                                                                            | 105 kB     00:00
>> file:///mnt/repo/c5.4/i386/updates/repodata/primary.xml.gz: [Errno -3] Error performing checksum
>> Trying other mirror.
>
> I work on Fedora12 and after download the rpm from web into local folder
> i have run 'createrepo .' in this folder, but the repo is non usable
> from centos 5.4
Right.

FC12's createrepo by default uses sha256 checksums, but CentOS only is 
able to grok sha1 checksums.

> Someone can help me?

Try

createrepo -s sha ...

to create your CentOS repos.

Ralf


More information about the users mailing list