By default CentOS base repositories won’t be configured on XenServer. To compile and install nagios/bacula or any other app on server you might end up searching for compiler tools like gcc etc. Here is a simple way to enable base repo and install gcc on your XenServer. yum –enablerepo=base install gcc This will enable the [...]
If you want to be able to install the packages from DVD or CDROM available with you try the following instructions.
First take the backup of /etc/yum.repos.d, remove those old repo files and add a new file called local.repo with the following lines:
name=Local CD Repo
/mnt/cdrom is the location of CD mount. Change it as per your system’s configuration.
Once this is done, you can go ahead with
yum install to install packages from CDROM.
Are you getting the following error while working with Yum?
# yum update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
/usr/lib/python2.4/lib-dynload/md5module.so: invalid ELF header
Please install a package which provides this module, or
verify that the module is installed correctly.
It’s possible that the above module doesn’t match the
current version of Python, which is:
2.4.3 (#1, May 24 2008, 13:47:28)
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]
If you cannot solve this problem yourself, please go to
the yum faq at:
md5module.so: invalid ELF header This error is resulted due to the Python package which is installed with an ELF bug. To resolve the issue, download a fresh copy of Python rpm, remove the existing one with –nodeps and then reinstall the Python rpm. You will be good to go with Yum again.