Having a lot of local users and/or processes accessing external repositories needlessly increases access times and bandwidth usage. Use a simple script to setup a syncronisation between a CentOS mirror and a local server. Here it is
#/bin/sh
VERSIONS=(5 5.1)
REPOS=(os updates centosplus extras)
RSYNC_LOCATION=”rsync://rsync.mirrorservice.org/sites/mirror.centos.org”
DESTINATION=”/repository/distributions/CentOS”
for version in ${VERSIONS[@]}
do
for repo […]
When using yum in a %post section of a kickstart a number of services are unavailable that yum would normally use. I got the error message “SysLogHandler instance has no attribute ‘unixsocket’” which is because syslog is unavailable and normally listens on the /dev/log device.
To get around this is i just moved the device file […]
A simple and quick way to test RPM dependencies is to use the rpm tool itself. You’ll need to be root as rpm needs to write transaction locks in the /var directory but providing you use the –dbpath and –test arguments your system will not be effected in any way apart from the new directory […]