One of the things that we need to support our linux development environment is an local mirror of the Fedora and Centos repositorites in our LAN. We accomplished this by using mrepo from RPMForge. The server that houses the repositories is currently built on RHEL 5.2. We installed the RPMForge yum configuration from here: http://dag.wieers.com/rpm/ and then performed a 'yum install mrepo' to install the service. Our configuration is fairly simple since we're only mirroring two repos. In the [main] section we define the paths where we would like our repository data to be stored as well as the arch that we need. Ours looks like this: [main] You will need to create an 'iso' directory in your 'srcdir' and place any iso's that you need for the distros that you support in that location. Next we've set up a mailto line that points to an alias on the localhost. We use the alias repo-admins (configured in /etc/aliases) to email all of our repository admins like this: mailto = repo-admins Now we define our individual repository information for the external repos that we want to mirror. Here is our Fedora 10 configuration as an example: [F10] Finally, to get the ball rolling on nightly updates I set up the following in root's crontab: 30 23 * * * /usr/bin/mrepo -ugvv You can manually run /usr/bin/mrepo -ugvv to do the initial sync if you like. Hope this helps. Let me know if you have any questions. -chuck |
|||
|
|
