Creating a CentOS mirror site

From Peter Pap's Technowiki
Revision as of 05:26, 13 July 2011 by Ppapa (talk | contribs)

Jump to: navigation, search

The best way to create a CentOS mirror is to use rsync. This has been documented elsewhere. However, if you are like me and you're stuck behind a corporate firewall and no one is willing to open port 873 for you, then you can do it all with wget over port 80.

1. Set up a server running apache. I'm sure you'll figure it out somewhere else!

2. Create a repository to hold the CentOS mirror data. You'll need a fair amount of space as the size of the mirror for even just one version of CentOS can be over 20Gb, even without the ISOs

 mkdir -p /export/htdocs/pub/centos

3. Pick a good mirror site to mirror from. You can find the list here.