This is not specific to XenServer, or to CentOS, but it was what I was trying to do at the time.
XenServer, by default, only has the Citrix repository enabled, so there will be lots of packages you can’t install.
If you want to install a package but don’t want to enable the CentOS repository, you can use the following command:
yum –enablerepo=base install mutt
This installs mutt from the base repo. If you want a list of available repos, you can do the following:
yum repolist disabled
Example output:
[root@testxenserver yum.repos.d]# yum repolist disabled
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
repo id repo name status
addons CentOS-5 – Addons disabled
base CentOS-5 – Base disabled
c5-media CentOS-5 – Media disabled
centosplus CentOS-5 – Plus disabled
contrib CentOS-5 – Contrib disabled
extras CentOS-5 – Extras disabled
updates CentOS-5 – Updates disabled
repolist: 0
And to see enabled repos:
[root@testxenserver yum.repos.d]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
repo id repo name status
citrix XenServer 5.6.100 updates enabled: 0
repolist: 0