[Spacewalk-list] Exclude some packages/Include only somes packages in a software channel

Michael Gliwinski Michael.Gliwinski at henderson-group.com
Fri Mar 25 16:40:21 UTC 2011


On Thursday 24 Mar 2011 17:37:39 Baptiste AGASSE wrote:
> Before using spacewalk, i used cobbler to manage and mirror locally
> repositories like CentOS 5.x, EPEL... and i was abble to define what
> package i want to mirror (for example, EPEL repo have a lot of packages
> but i use only a few of them) and their dependencies.
> 
> I saw that spacewalk use cobbler for distros, but not for channel repo
> management.
> 
> So, my question is: Is it possible to filter which package to download
> from remote repository (with an "download only" or "exclude" condition) ?
> And, if not:
> Anybody have the same problem ?
> It will be included in future spacewalk version ?

Yes, I had the same problem.  In the meantime I hacked a plugin to spacewalk-
repo-sync to read includes from a config file, but it would be way better if 
support for reading and setting yum config options for spacewalk-repo-sync 
existed in Spacewalk natively.

I'm attaching the file in case you're interested, but I didn't have time to 
really think the design through, so it's a "quick & dirty" version (it's based 
on yum_src.py from Spacewalk).  Basically you have to put the file in 
/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/repo_plugins/ and 
put a config file (like subset of yum config with just includepkgs options in 
each repo section) in /etc/rhn/spacewalk-repo-sync-yum.conf and then you can 
run e.g.:

  spacewalk-repo-sync --channel=epel-5-i386 --type=yumsubset

(assuming you have epel-5-i386 channel with repository URL and GPG keys 
defined).

You also have to hunt down all dependencies and include them in includepkgs 
manually.  I started working on something to make this easier but so far lack 
the time to get anywhere with it.

Let me know if that works for you (I'm away next week but will respond as soon 
as I'm back).


-- 
Michael Gliwinski
Henderson Group Information Services
9-11 Hightown Avenue, Newtownabby, BT36 4RT
Phone: 028 9034 3319

**********************************************************************************************
The information in this email is confidential and may be legally privileged.  It is intended solely for the addressee and access to the email by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.
When addressed to our clients, any opinions or advice contained in this e-mail are subject to the terms and conditions expressed  in the governing client engagement leter or contract.
If you have received this email in error please notify support at henderson-group.com

John Henderson (Holdings) Ltd
Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland, BT36 4RT.
Registered in Northern Ireland
Registration Number NI010588
Vat No.: 814 6399 12
*********************************************************************************

-------------- next part --------------
A non-text attachment was scrubbed...
Name: yumsubset_src.py
Type: text/x-python
Size: 3871 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20110325/f3e1f1d7/attachment.py>


More information about the Spacewalk-list mailing list