Create a local EPEL mirror
We use some add-on packages from EPEL . Since we want to peg packages to specific versions only, and to reduce the number of servers that connect directly to the internet, we decided to build a local mirror for the EPEL repository. Install dependencies. yum install httpd yum-utils createrepo Patch reposync to add option for "flattened" directories. (By default, reposync creates a directory named after the repo ID for placing the downloaded packages.) cat > reposync.patch --- /usr/bin/reposync.bak 2012-11-13 13:30:37.000000000 +0800 +++ /usr/bin/reposync 2012-11-13 13:34:47.000000000 +0800 @@ -117,6 +117,8 @@ def parseArgs(): help="enable yum plugin support") parser.add_option("-m", "--downloadcomps", default=False, action="store_true", help="also download comps.xml") + parser.add_option("-f", "--flatdir", dest='flatdir', default=False, action="...