The following intructions can be used to install .NET Core on Linux ARM64.
Pro tip: Check out .NET Core Docker files to determine the exact instructions for installing .NET Core builds, for example .NET Core 3.1 ARM32 SDK Dockerfile.
The following instructions install the latest .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-linux-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
- For ARM32, switch "arm64" to "arm" in the link above.
- For .NET Core 3.1, you can get the download link @ https://dotnet.microsoft.com/download/dotnet-core/3.1 (look for ARM binaries).
.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
The following steps can be used to try out .NET Core.
dotnet new console -o app
cd app
dotnet run
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