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
- Get the yum-conf src rpm. Get the appropriate rpm for your distribution
ftp://ftp.scientificlinux.org/linux/scientific/30x/SRPMS - 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 - Edit the appopriate files. Changing them to point to your machines.
yum-conf-304/etc/yum.conf
yum-conf-304/etc/yum.d/yum.cron.primary
yum-conf-304/etc/yum.d/yum.cron.secondary - Tar back up the directory
tar cfz yum-conf-3.0.4.tar.gz yum-conf-304 - cd to the spec directory
cd /usr/src/redhat/SPECS/ Edit the spec file. Change the release to something appropriate
- Build your rpm
rpmbuild -ba yum-conf-sl304.spec
vi yum-conf-sl304.spec