How to install additional packages in XenServer

By default, XenServer enables only Citrix yum repository. For example, to examine all enabled repositories on XenServer, run the following.

$ 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

Subscribe to Xmodulo

Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.


Support Xmodulo

Did you find this tutorial helpful? Then please be generous and support Xmodulo!

The following two tabs change content below.
Dan Nanni is the founder and also a regular contributor of Xmodulo.com. He is a Linux/FOSS enthusiast who loves to get his hands dirty with his Linux box. He likes to procrastinate when he is supposed to be busy and productive. When he is otherwise free, he likes to watch movies and shop for the coolest gadgets.

Leave a comment

Your email address will not be published. Required fields are marked *