Getting Mono running on an Amazon Linux AMI

September 4, 2013

This morning I spent some time getting mono running on an Amazon AWS EC2 instance. The instance is running a standard Amaxon Linux AMI, and the mono packages aren’t available in the default repos. After a bit of searching I found a post on the Amazon Web Services Forum that pointed me in the right direction, and is pretty simple once you know how.

First up, you need to modify /etc/yum.repos.d/epel.repo. Under the section marked [epel], change enabled=0 to enabled=1 e.g.

name=Extra Packages for Enterprise Linux 6 - $basearch

Now you can run:

sudo yum install mono-core