Installing Mono and .NET Core with Kestrel on Fedora 23 (Quick guide)

Installing Mono and .NET Core is very simple on Fedora 23, even though there are no official docs.

Step 1: Install Mono and dependencies:

sudo dnf install mono-devel openssl-devel libunwind

or, if you want to install Mono from their repository (newest stable versions):

sudo rpm --import ""
sudo dnf config-manager --add-repo
sudo dnf install -y mono-complete openssl-devel libunwind --refresh

Step 2: Install libuv (for Kestrel):

sudo dnf install libuv libuv-devel

Step 3: Install dnvm (dot-net-version-manager) and test it:

curl -sSL | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/
dnvm list # should return blank list

Step 4: Install the latest .NET runtime (Mono and coreclr)

dnvm install latest -r mono
dnvm install latest -r coreclr

Step 5: Test

dnvm list # should return two runtimes
dnx # should work

Step 6: Write a simple app - In a blank folder create Program.cs and project.json files:


using System;

public class Program
    public static void Main (string[] args)
        Console.WriteLine("Hello, Linux");
        Console.WriteLine("Love from CoreCLR.");


    "frameworks" : {
        "dnx451" : { },
        "dnxcore50" : { }

And run it:

dnu restore
dnx run

If dnu restore complains about not being able to download NuGet packages your certificates are probably in need of an update:

mozroots --import --sync

Also try coreclr (replace rc1-update1 with your installed version):

dnvm use 1.0.0-rc1-update1 -r coreclr
dnx run

Have fun!


Now read this

self.liberate() – Writing a game in Python for Android was a liberating experience

You write code every day. Whether you are a student or it is for your job or just for fun, most of the time you find yourself writing some code. Even when you are not writing code, you are thinking about it. On your commute you are on HN... Continue →