Installing Mono 1.9 on CentOS 5

MonoDevelop was recently released and I thought to try it on my CentOS 5 workstation… According to the Mono web site the prefered method for installing Mono on RedHat is to use yum. Once yum is installed, putting a mono.repo file in /etc/yum.repos.d will allow you to install mono and related packages.

BUT this is for RHELĀ  4 not RHEL 5 (and therefore CentOS 5)… If you try it you will get dependency errors. For CentOS 5 the best solution is to add the following mono.repo file to your /etc/yum.repos.d

[Mono]
name=Mono Stack (RHEL_5)
type=rpm-md
baseurl=http://download.opensuse.org/repositories/Mono/RHEL_5/
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/Mono/RHEL_5/repodata/repomd.xml.key
enabled=1

It works great!

I found the file at: http://download.opensuse.org/repositories/Mono/RHEL_5/

Gary

Gary

7 thoughts on “Installing Mono 1.9 on CentOS 5

  1. You have no idea how useful this was. I worked off and on for a week trying to get Mono installed from the RHEL4 repo file. Thanks.

  2. This is naturally great! I wonder, though, if this repository ever gets updated. Mono 2.2 is out and all over the place, but as of today, this repository only holds copies 1.9.1 (ie. “barely Mono 2.0″)…

  3. … which is a pain, now that 2.4 is out, and this repo doesn’t seem to get updated :/

    My trouble is that a few Mono apps I’m using require the Mono 2.4 libraries, or they won’t compile.

Comments are closed.