LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2015, 05:16 PM   #1
spark84
LQ Newbie
 
Registered: Feb 2015
Location: Newyork
Posts: 2

Rep: Reputation: Disabled
Help Me _How to Create an Oracle Linux / CentOS YUM repository


Hello Experts,
I would like to create a server which can act as a YUM repository of Oracle Linux 6.5 and CentOS 6.5. Also I would like other servers to access this repo via http. I am stucked here to understand how I can bring all "RPMs" in to "/repo/OracleLinux/OEL6/current/x86_64" and always keep it updated. I would appreciate any help on this.
Thanks In Advance
 
Old 02-21-2015, 05:57 PM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
First think we will need to do is get a repo that is close to you. I see that you are from New York we will want an American Server
Probably one of these
Code:
US	NY	Atlantic Metro Communications	http://mirror.atlanticmetro.net/centos/	ftp://mirror.atlanticmetro.net/centos/	
US	NY	BuildDesignCreate.com	http://centos.builddesigncreate.com/mirror/		
US	NY	Clarkson University	http://mirror.clarkson.edu/centos/		rsync://mirror.clarkson.edu/centos
US	NY	Columbia University	http://mirror.cc.columbia.edu/pub/linux/centos/	ftp://mirror.cc.columbia.edu/pub/linux/centos/	rsync://mirror.cc.columbia.edu/centos/
US	NY	NYU	http://mirror.es.its.nyu.edu/centos/		
US	NY	Rochester Institute of Technology	http://mirrors.rit.edu/centos/		rsync://mirrors.rit.edu/centos/
US	NY	SpinelliCreations	http://centos.spinellicreations.com/		
US	NY	Voxel US	http://mirrors.lga7.us.voxel.net/centos/
We will then need to install http and createrpo. (You can do this by setting up an http server, creating a directory in there and then rysncing the files but this will be better for a first time)

Code:
sudo yum install httpd createrepo
sudo chkconfig httpd on
sudo service httpd start
This will install the http service enable it on runlevels 2-5 and start the httpd service

now under /var/www/html create a directory to hold your files.
Code:
sudo mkdir -pv /var/www/html/yumrepo/centos/6.5/os/x86_64/
now lets rsync the files to this directory

Code:
sudo rsync rsync://mirrors.rit.edu/centos/6.5/*
now we just need to do the following
Code:
sudo createrepo /var/www/html/yumrepo/centos
now just point some of your clients to the http://<server_name>/centos/$releasever/ and further down for each stanza. This was kind of short so if you need more info you may want to do a quick search.

to keep the repo updated just use rsync to download the updates from the mirror that you use. Be warned when I gave these instructions I didn't take security in mind, so there are more ways to secure this.
 
Old 02-21-2015, 08:08 PM   #3
spark84
LQ Newbie
 
Registered: Feb 2015
Location: Newyork
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank You jstephens84 for your detailed explanation on this.
 
Old 02-22-2015, 07:02 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,245

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
Warning:
BE VERY CAREFUL!!!!!!!!
with HARD-CODING THE VERSION NUMBER!!!!!!!!!



"//mirrors.rit.edu/centos/6.5/*" is a out of date version !!!
and one that is UNSUPPORTED!!!!!!!
and moved to the HISTORICAL ARCHIVE " The Vault"
### DO NOT USE !!!!!! ###


the current is 6.6
and it is normally a good idea to use the major version
"mirrors.rit.edu/centos/6/"
or

Code:
mirrors.rit.edu/centos/$releasever/$basearch/os/
BUT
Oracles version of redhat
has it's OWN REPOS
buy the Oracle support contract !!!!

just like the Redhat support contract

or

install CentOS 6.6 or 7.0

Last edited by John VV; 02-22-2015 at 07:03 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create my own yum group repository? nsampath Linux - Software 6 06-13-2013 11:42 AM
[SOLVED] Creating Local Yum Repository in Oracle Linux 6 benardkichakuri Linux - General 2 06-21-2012 03:01 PM
Linux (centos) server yum repository issue fear_matrix Linux - Server 19 11-11-2011 04:43 AM
bash_-_how to create a default value babag Programming 5 06-24-2009 07:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration