[Yum] Using yum for repo that was created with createrepo

Maria Alandes Pradillo Maria.Alandes.Pradillo at cern.ch
Mon Oct 12 09:11:56 UTC 2009


Hi,

>> I'm experiencing problems when trying to install packages from a repository that was created using --split and --outputdir option.
>>
>> The repository was created in this way:
>>
>> createrepo --split -o dir1 dir2
>>
>> This means that packages are in dir2 and repodata is included in dir1.
>>
>> My repo file is:
>>
> [repo]
>> name=my repo
>> baseurl=http://whatever/dir1, http://whatever/dir2

> This tells yum that there are two places it can get the repomd.xml
> file from, for the "repo" repo:
> 
> http://whatever/dir1/repodata/repomd.xml
> http://whatever/dir2/repodata/repomd.xml
>
>...and that both of those places point to the same MD, ie. one of them
>is a mirror of another.

Ok, I see. But then, how should the repo file look like if you create a repo like this?
createrepo --split -o dir1 dir2

Thanks a lot!
Maria




More information about the Yum mailing list