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.
Patch reposync to add option for "flattened" directories. (By default, reposync creates a directory named after the repo ID for placing the downloaded packages.)
Create the repository directories.
Start downloading the repo.
Copy the packages to staging first.
Create repo metadata.
Add the following configuration file to /etc/httpd/conf.d/.
Restart Apache.
Use the following yum repo config in /etc/yum.repos.d/.
I haven't written any update script. Yet. We try to "freeze" our repos at a certain point so updates are few -- except for major security errata. But creating one should be trivial. The steps would be similar to what you've done (reposync to staging, copy to "live" tree, createrepo live tree, yum update on client).
This assumes you have Android Debug Bridge (ADB) installed. This will pull all files from a directory in an Android phone. cd /path/to/destination/directory adb pull /path/to/source . As Julian says, "Easy-peasy, lemon squeezy." (I use this, by the way, since the Nexus 5 and OS X Mavericks refuse to work together in USB mode.)
MySQL client libraries has been bundled with Postfix in RHEL 5 . Unfortunately, this conflicts with the Oracle MySQL libraries when we try to update Postfix: ---> Package postfix.x86_64 2:2.3.3-6.el5 set to be updated --> Processing Dependency: mysql for package: postfix --> Running transaction check ---> Package mysql.x86_64 0:5.0.95-5.el5_9 set to be updated --> Processing Conflict: MySQL-client conflicts mysql --> Processing Conflict: MySQL-server conflicts mysql --> Processing Conflict: mysql conflicts MySQL --> Finished Dependency Resolution mysql-5.0.95-5.el5_9.x86_64 from Updates has depsolving problems --> mysql conflicts with MySQL-server MySQL-client-5.6.10-1.rhel5.i386 from installed has depsolving problems --> MySQL-client conflicts with mysql MySQL-server-5.6.10-1.rhel5.i386 from installed has depsolving problems --> MySQL-server conflicts with mysql Error: MySQL-server conflicts with mysql Error: mysql conflicts with MySQL-server Err...
Hi Ian,
ReplyDeleteI have used this tutorial for a Red Hat 6.3 and work well.
Have you create some script to keep updated yout epel repository?
I'm trying use this:
/usr/bin/reposync -a x86_64 -r epel -p /srv/mirror/epel.staging -n
Hi, Diego.
ReplyDeleteSorry for getting back to you just now. :-)
I haven't written any update script. Yet. We try to "freeze" our repos at a certain point so updates are few -- except for major security errata. But creating one should be trivial. The steps would be similar to what you've done (reposync to staging, copy to "live" tree, createrepo live tree, yum update on client).
Hope this helps. Thanks for dropping by.