[WBEL-users] I got yum to work on WBEL4

Johnny Hughes mailing-lists at hughesjr.com
Sat May 21 14:39:06 CDT 2005


On Fri, 2005-05-20 at 14:47 -0700, Benjamin Smith wrote: 
> Here's what I did: 
> 
> Scenario: 
> 	-) Yum repo set up on WBEL 3. Called "Repo Server" here. 
> 	-) Workstation is running WBEL 4. Called "Workstation" here. 
> 
> A) Setting up the Repo Server: I installed the RPM from DAG for EL3, from 
> 	http://dag.wieers.com/packages/createrepo/
> 
> B) rsync the files to my repo server. Script file I'm using is like: 
> 
> 	$HOME4="/home/yum/updates/whitebox/4/en"; 
> 	rsync --bwlimit=20 -Pvptrl --delete \
> 		rsync://rsync.host/whitebox/4/en/updates \
> 		$HOME4/updates; 
> 	rsync --bwlimit=20 -Pvptrl --delete \
> 		rsync://rsync.host/whitebox/4/en/os \
> 		$HOME4/os; 
> 
> C) Run yum-arch on directory. (Don't know if this is still needed) 
> 	cd $HOME4/updates; 
> 	yum-arch .; 
> 	cd $HOME4/os; 
> 	yum-arch .; 
> 
> D) Run createrepo on directory. 
> 	cd $HOME4/updates; 
> 	createrepo .; 
> 	cd $HOME4/os; 
> 	createrepo .; 
> 
> 
> SETTING UP THE WORKSTATION 
> The primary difference here is that the paths are a little different. Here's a 
> file I have called /etc/yum.repos.d/default.repo 
> 
> ##########################################################
> [base]
> name=White Box Enterprise Linux 4 - $basearch - Base
> baseurl=http://www.myyumserver.com/updates/whitebox/4/en/os/
> 
> [updates-released]
> name=White Box Enterprise Linux 4 - $basearch - Released Updates
> baseurl=http://www.myyumserver.com/updates/whitebox/4/en/updates/
> ##########################################################
> 
> Notice that $basearch is no longer part of the URL path in baseurl? Now, "yum 
> list" works, and I can install via yum. 
> 
> W00t! 

If you also create a ln -s from the main os directory to (that contains
the GPL file) to WhiteBox/base/comps.xml ... like this (from within the
main directory):

ln -s WhiteBox/base/comps.xml yumgroups.xml

then when you build the OS directory do it like this:

createrepo -g yumgroups.xml .

That will let you use the "yum group" features.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://beau.org/pipermail/whitebox-users/attachments/20050521/375e3088/attachment.bin


More information about the Whitebox-users mailing list