Last updated on May 12, 2012 by Dan Nanni
By default, XenServer enables only the official Yum repository from Citrix. For example, to examine all enabled repositories on XenServer, you can run the following command.
$ sudo yum repolist enabled
Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile repo id repo name status citrix XenServer 5.6.100 updates enabled: 0
However, the default Citrix Yum repository is void of any useful software. If you want to install a standard Linux package on XenServer, you need to enable a base repository as follows.
$ sudo yum --enablerepo=base --disablerepo=citrix install traceroute
If you want to enable base repo on XenServer permanently by default, you can update /etc/yum.repos.d/CentOS-Base.repo as follows.
$ sudo sed -i -e "s/enabled=0/enabled=1/" /etc/yum.repos.d/CentOS-Base.repo
From this point on, you can install any software package available in base repository without explicitly enabling it.
$ sudo yum install vim-enhanced $ sudo yum install gcc
Please note that this article is published by Xmodulo.com under a Creative Commons Attribution-ShareAlike 3.0 Unported License. If you would like to use the whole or any part of this article, you need to cite this web page at Xmodulo.com as the original source.