Skip to content.

Scientific Linux

Personal tools
You are here: Home » Documentation » How To » Old » How to change Yum to point to my repository (S.L. 3.0.x)

How to change Yum to point to my repository (S.L. 3.0.x)

Scientific Linux was designed so that users could easily change where their machines get their nightly updates.

Just Edit The Files

  • /etc/yum.conf
  • /etc/yum.d/yum.cron.primary
  • /etc/yum.d/yum.cron.secondary

Customize yum-conf rpm

Scientific Linux has two yum rpm's. yum and yum-conf. This initially was so that yum could be upgraded without touching the configuration files. But it also allows people to completely change their yum-conf to point to wherever they wish.

Steps to customize your yum-conf rpm.
For the example we'll assume this is for release 3.0.4

  1. Get the yum-conf src rpm. Get the appropriate rpm for your distribution
  2. install the src.rpm and untar the source
    rpm -Uvh yum-conf-304-2.src.rpm
    cd /usr/src/redhat/SOURCES/
    tar xfz yum-conf-3.0.4.tar.gz
  3. Edit the appopriate files. Changing them to point to your machines.
  4. Tar back up the directory
    tar cfz yum-conf-3.0.4.tar.gz yum-conf-304
  5. cd to the spec directory
    cd /usr/src/redhat/SPECS/
  6. Edit the spec file. Change the release to something appropriate
    vi yum-conf-sl304.spec
  7. Build your rpm
    rpmbuild -ba yum-conf-sl304.spec

Created by dawson
Last modified 2006-01-18 01:26 PM

Powered by Plone

This site conforms to the following standards: