Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have been working with CentOS for quite a while now and i got used to the way the repos are managed. Recently a new proprietary app required the company to get RHEL licences and the repo management has become a nightmare.

Synchronizing the RHEL repo means downloading almost 15k packages (for v5) and i would really like to limit my mirror to offer packages based on a specific release (i.e. 5.8, 5.9).

I have been googling for a few days and i can't find anything related. any ideas how is it implemented in CentOS?

I forgot to add that i'm already using mrepo for repo sync and cobbler for systems provisioning.

share|improve this question
    
Just use those specific channels? You do have Red Hat Satellite, don't you? I wouldn't even think of deploying more than a tiny handful of RHEL machines without it. –  Michael Hampton Feb 19 '13 at 16:16
    
The only channel available in RHEL satellite is for the major release, they do not have child channels for each point release. if they had, i would not be asking. –  AlberTUX Feb 19 '13 at 22:33
add comment

1 Answer

With redhat satellite you can create channels with a specific version or at a point in time with the command :

spacewalk-create-channel --user=satadmin --server=localhost --version=5 --update=u8 --release=Server --arch=x86_64 --destChannel=rhel-5.8-x86_64 --clone

It is important to put the --clone option to create the repo with groups.

You have another command if you want to make a repo at a point in time.

Exemple:

spacewalk-clone-by-date --user=username --server=localhost -l rhel-x86_64-server-5 rhel-x86_64-server-5U2 -d 2012-01-19

Hope this will be helpful.

share|improve this answer
1  
Thank you Boogy, i am already using other cobbler, which conflicts with spacewalk. since i'm also using mrepo, i rather use another method... do you know the internals of the clone command? what exactly does it do? –  AlberTUX Feb 20 '13 at 15:32
    
Here is a brief explication that Red Hat gives for the command: Script to clone software channels and errata up to specific dates ensuring any added packages have their dependencies satisfied. Any destination channels that do not exist will be created. –  Boogy Feb 25 '13 at 14:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.