Re: Using yum for repo that was created with createrepo

Ljubomir Ljubojevic <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
If mrepo is used, there is an option to merge one or more repositories 
in one big repository.

James Antill wrote:
> Maria Alandes Pradillo <[email protected]> writes:
> 
>> Hello,
>>
>>> Ok, I see. But then, how should the repo file look like if you create a repo like this?
>>> createrepo --split -o dir1 dir2
>>>
>>>  As the documentation for --split says, it is used for "split
>>> media". Ie. where you have more data than will fit on a single CD/DVD,
>>> at which point anaconda has some magic which makes this work.
>>>  If you are just accessing this from the network you'll want to create
>>> a single repo. ... if you are doing both, I think you want to run it
>>> twice (probably via. some other tool for the media creation bit --
>>> maybe someone who does CD install disks can answer?)
>> Thanks for your answer, James. I understand now. But then, what would be the repo file I should use if I create a repository in this way?
>>
>> createrepo -i list1 -o dir1 main_dir
>> createrepo -i list2 -o dir2 main_dir
>>
>> The thing is that I'm wondering whether it makes sense to do this in yum so that main_dir contains all the packages of my release but in dir1 and dir2 I have different views of the repository which actually contain some of the packages of main_dir (as specified in list1 and list2). Does this make sense? How should I define my repo file? If I do this:
> 
>  I think you'd need to have two repos, like:
> 
> [repo1]
> name=my repo list1
> baseurl=http://whatever/dir1
> 
> [repo2]
> name=my repo list2
> baseurl=http://whatever/dir2
> 
> ...and if you need to have it on the FS in that way I think you need
> to use: --baseurl http://whatever/main_dir
> 

Ljubomir Ljubojevic
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.