This post is an extract of the article “Installing Ubuntu 16.04 on a Raspberry Pi 3, installing .NET Core 2, and running a sample .NET Core 2 app” (here) written by Jeremy Lindsay.
He tested .NET Core 2 on Raspberry Pi 3. I tested the framework on ODROID-HC1.
.NET Core 2 Installation
# Update Ubuntu 16.04 sudo apt-get -y update # Install the packages necessary for .NET Core sudo apt-get -y install libunwind8 libunwind8-dev gettext libicu-dev liblttng-ust-dev libcurl4-openssl-dev libssl-dev uuid-dev # Download the latest binaries for .NET Core 2 wget https://dotnetcli.blob.core.windows.net/dotnet/Runtime/release/2.0.0/dotnet-runtime-latest-linux-arm.tar.gz # Make a directory for .NET Core to live in sudo mkdir /usr/local/lib/dotnet # Unzip the binaries into the directory we just created sudo tar -xvf dotnet-runtime-latest-linux-arm.tar.gz -C /usr/local/lib/dotnet # Now add the path to the dotnet executable to the environment path # This ensures the next time you log in, the dotnet exe is on your path echo "PATH=\$PATH:/usr/local/lib/dotnet" >> dotnetcore.sh sudo mv dotnetcore.sh /etc/profile.d
Then run the command below to add the path to the dotnet executable to the current session
PATH=$PATH:/usr/local/lib/dotnet
Test the .NET Core 2 installation
You can now test the framework.
dotnet --info
You should see the following information.