Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installing .NET Core 3.0 on Linux ARM64

Installing .NET Core 3.0 on Linux ARM64

The following intructions can be used to install .NET Core 3.0 nightly builds on Linux ARM64. See .NET Core Runtime ARM64 Status for latest quality updates on builds.

Pro tip: Check out .NET Core Docker files to determine the exact instructions for installing .NET Core builds, for example .NET Core 2.2 ARM32 SDK Dockerfile.

Installing .NET Core Globally

The following instructions install .NET Core globally. It isn't required to do that, but it provides the best experience.

curl -SL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/master/dotnet-sdk-latest-l
inux-arm64.tar.gz
sudo mkdir -p /usr/share/dotnet
sudo tar -zxf dotnet.tar.gz -C /usr/share/dotnet
sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet

Dependencies

.NET Core has the following dependencies, on Ubuntu (other distros will vary):

  • libc6
  • libgcc1
  • libgssapi-krb5-2
  • libicu60
  • liblttng-ust0
  • libssl1.0.0
  • libstdc++6
  • zlib1g

Trying out .NET Core

The following steps can be used to try out .NET Core.

dotnet new console -o app
cd app
dotnet run

Note: The console template is currently wrong, so you will need to update it to reference .NET Core 3.0 as part of this process. It is a simple change, described in the bug. Fix that before typing dotnet run.

ASP.NET Core is not currently included in .NET Core 3.0 builds. That should be fixed soon.

How to install ARM64 builds

@SuperJMN

This comment has been minimized.

Copy link

commented Jul 16, 2019

Please, join the script above. It says:

"curl -SL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/master/dotnet-sdk-latest-l
inux-arm64.tar.gz"

There is a line break that spoils the paste for dummies like me ;)

@Carlos-Carreno-Berlanga

This comment has been minimized.

Copy link

commented Aug 23, 2019

Hi, is there any script that works on Raspberry Pi 4?

I tried to run this on my brand new Pi 4 but it doesn't work.

Any help is welcome.

@scotdwg

This comment has been minimized.

Copy link

commented Sep 22, 2019

I can confirm. Doesn't compile or run on arm64
admin@pi5:~ $ curl -SL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/master/dotnet-sdk-latest-linux-arm64.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 110M 100 110M 0 0 7497k 0 0:00:15 0:00:15 --:--:-- 8154k
admin@pi5:~ $ sudo mkdir -p /usr/share/dotnet
admin@pi5:~ $
admin@pi5:~ $ sudo tar -zxf dotnet.tar.gz -C /usr/share/dotnet
admin@pi5:~ $ sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
admin@pi5:~ $ dotnet new console -o app
-bash: /usr/bin/dotnet: cannot execute binary file: Exec format error

Hi, is there any script that works on Raspberry Pi 4?

I tried to run this on my brand new Pi 4 but it doesn't work.

Any help is welcome.

@scotdwg

This comment has been minimized.

Copy link

commented Sep 22, 2019

Very strange error when running as root:
admin@pi5:~ $ sudo dotnet console -o app
/usr/bin/dotnet: 1: /usr/bin/dotnet: ELF??2@@?@8: not found
/usr/bin/dotnet: 2: /usr/bin/dotnet: @!: not found
/usr/bin/dotnet: 2: /usr/bin/dotnet: : not found
/usr/bin/dotnet: 2: /usr/bin/dotnet: Q?t?R?t??A?/lib/ld-linux-aarch64.so.1GNUGNU~??pEϖ???bq?: not found
/usr/bin/dotnet: 3: /usr/bin/dotnet: Syntax error: ")" unexpected
admin@pi5:~ $

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.