Centos5 Upgrade Mono

I Use Centos5 as my Linux system operation. Default mono-core installed in centos is mono-core-1.2.4-2.el5.centos. This version is to old and I want to install or upgrade mono. This is a method how to install or upgrade mono in Centos5.

  • Create a new repo config file. vim /etc/yum.repos.d/mono.repo and add the following text :
[Mono]
name=Mono Stack (RHEL_5)
type=rpm-md
baseurl=http://ftp.novell.com/pub/mono/download-stable/RHEL_5/
gpgcheck=1
gpgkey=http://ftp.novell.com/pub/mono/download-stable/RHEL_5/repodata/repomd.xml.key
enabled=1
  • Save this file and update repo list with command : yum clean all
  • install the mono server stack with command : yum install monotools-addon-server
  • set up shell environtment so that it finds mono, mcs and the other mono tools. Use this command : cp /opt/novell/mono/bin/mono-addon-environtment.sh /etc/profile.d
  • edit file /etc/profile.d/mono-addon-environtment.sh and change this line PS1=”[mono-addon] $PS1″ with #PS1=”[mono-addon] $PS1″
  • Log off your computer and after login again, check mono version with this command : mono –version. This is output from my computer :
[toto@localhost ]$ mono --version
Mono JIT compiler version 2.10.1 (tarball Wed Feb 23 20:24:20 UTC 2011)
Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  x86
        Disabled:      none
        Misc:          debugger softdebug
        LLVM:          supported, not enabled.
        GC:            Included Boehm (with typed GC and Parallel Mark)
  • Now, you can install new version of mono addon. Example, I want to install mono-gdi, So I use command : yum install mono-addon-libgdiplus0
Source :
http://stackoverflow.com/questions/3510320/install-mono-on-centos5-5-using-yum
2 Comments

Add a Comment

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