Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-21-2015, 05:16 PM   #1
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
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
US	NY	Atlantic Metro Communications	
US	NY	Clarkson University		rsync://
US	NY	Columbia University	rsync://
US	NY	Rochester Institute of Technology		rsync://
US	NY	SpinelliCreations		
US	NY	Voxel US
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)

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.
sudo mkdir -pv /var/www/html/yumrepo/centos/6.5/os/x86_64/
now lets rsync the files to this directory

sudo rsync rsync://*
now we just need to do the following
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
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

"//*" 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

Oracles version of redhat
has it's OWN REPOS
buy the Oracle support contract !!!!

just like the Redhat support contract


install CentOS 6.6 or 7.0

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


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 > Forums > Linux Forums > Linux - Newbie

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

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