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

Benjamin Smith lists at benjamindsmith.com
Fri May 20 16:47:35 CDT 2005


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! 

-Ben 

On Friday 20 May 2005 09:25, you wrote:
> On Friday 20 May 2005 10:53 am, Benjamin Smith wrote:
> > If I understand what you've said:
> >
> > WBEL 4 comes with a "yum" command that requires a "createrepo" command run
> > on the yum repository that doesn't come with either WBEL3 or 4?
> >
> > That doesn't sound right. Has anybody gotten yum to work for WBEL 4?
> >
> > -Ben
> 
> createrepo is needed for yum on FC3 and FC4 to work properly  it is not 
> included with eiter of those.  ive used the createrepo package from 
freshrpms 
> for my internal needs.  i havent used it for WBEL yet  but i cant see why it 
> wont work.
> 
> -- 
> Regards
> 
> 
> Dennis Gilmore  RHCE
> Network Manager
> Royal Publishing
> (309)693-3171 x299
> 7620 N. Harker Drive
> Peoria IL 61615
> 
> 
> Fedora Core release Rawhide (Rawhide)
>  11:23:26 up 2 days, 19:07,  7 users,  load average: 2.95, 1.86, 1.05
> 

-- 
"The best way to predict the future is to invent it."
- XEROX PARC slogan, circa 1978


More information about the Whitebox-users mailing list