Installing Mono 1.9 on CentOS 5

March 26th, 2008 | by Gary |

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

7 Responses to “Installing Mono 1.9 on CentOS 5”

  1. By Cliffra on May 9, 2008

    Thankyou Gary, 2 days of frustration ended with a simple answer!

  2. By Brian on Jul 17, 2008

    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.

  3. By Niel on Aug 17, 2008

    ditto that!

  4. By The Pov on Sep 11, 2008

    Thanks! This ended a wild goose chase that involved much wailing and gnashing of teeth!

  5. By Gwyneth Llewelyn on Mar 29, 2009

    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″)…

  6. By Gwyneth Llewelyn on Jun 7, 2009

    … 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.

  7. By The_Assimilator on Jun 23, 2009

    As of June 19 this repository does not exist anymore, however you can use

    http://download.opensuse.org/repositories/home:/mindtouch/RHEL_5/

    (Mono 1.9.2)

    or

    http://download.opensuse.org/repositories/home:/directhex/RHEL_5/

    (Mono 2.0.1)

Post a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word