Difference between revisions of "Creating a CentOS mirror site"
From Peter Pap's Technowiki
Line 1: | Line 1: | ||
The best way to create a CentOS mirror is to use '''rsync'''. This has been documented [http://wiki.centos.org/HowTos/CreateLocalMirror 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. | The best way to create a CentOS mirror is to use '''rsync'''. This has been documented [http://wiki.centos.org/HowTos/CreateLocalMirror 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 [http://www.centos.org/modules/tinycontent/index.php?id=30 here]. |
Revision as of 05:26, 13 July 2011
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.