Reading time: | 10 min |
Last updated: | 7 Jun 2024 |
Test status: |
Reading time: |
10 min |
Last updated: |
7 Jun 2024 |
Test status: |
Author: | Jason Andrews, Arm |
Official docs: | View |
Tags: |
Author: |
Jason Andrews, Arm |
Official docs: |
View |
Tags: |
This guide is intended to get you up and running with this tool quickly with the most common settings. For a thorough review of all options, refer to the official documentation.
The .NET SDK is a free, open-source, and cross-platform development environment that provides a broad set of tools and libraries for building applications. You can use it to create a variety of applications including web apps, mobile apps, desktop apps, and cloud services.
The .NET SDK is available for Linux distributions on Arm-based systems.
Confirm you are using an Arm machine by running:
uname -m
The output should be:
aarch64
If you see a different result, you are not using an Arm computer running 64-bit Linux.
There are two ways to install the .NET SDK on your computer:
Select the one that works best for you.
Use apt
to install .NET SDK on Ubuntu and Debian:
sudo apt-get install -y dotnet-sdk-8.0
Use dnf
to install .NET SDK on Fedora:
sudo dnf install dotnet-sdk-8.0
If the .NET SDK is not found in your package manager, you can install it using a script.
To install the .NET SDK using a script, follow the instructions below:
wget https://dot.net/v1/dotnet-install.sh
You have some options to specify the version you want to install.
To install the latest long term support (LTS) version, run:
bash ./dotnet-install.sh
To install the latest version, run:
bash ./dotnet-install.sh --version latest
To install a specific version, run:
bash ./dotnet-install.sh --channel 8.0
export PATH="$HOME/.dotnet/:$PATH"
You can also add the search path to your $HOME/.bashrc
so it is set for all new shells.
To check that the installation was successful, type:
dotnet --list-sdks
The output is printed:
8.0.105 [/usr/lib/dotnet/sdk]
To print more information, run the following command:
dotnet --info
More details about your installation are printed:
.NET SDK:
Version: 8.0.105
Commit: eae90abaaf
Workload version: 8.0.100-manifests.796a77f8
Runtime Environment:
OS Name: ubuntu
OS Version: 24.04
OS Platform: Linux
RID: ubuntu.24.04-arm64
Base Path: /usr/lib/dotnet/sdk/8.0.105/
.NET workloads installed:
Workload version: 8.0.100-manifests.796a77f8
There are no installed workloads to display.
Host:
Version: 8.0.5
Architecture: arm64
Commit: 087e15321b
.NET SDKs installed:
8.0.105 [/usr/lib/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.5 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.5 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
To test the .NET SDK installation, create a new hello world console application:
dotnet new console -o myapp
Change to the new directory and run:
cd myapp
dotnet run
The expected output in the console is:
Hello World!
You are ready to use the .NET SDK on Arm Linux.
You can find more information about .NET on Arm in the AWS Graviton Technical Guide .
Explore .NET examples by visiting the Learning Center .
How would you rate the overall quality of this tool quick-install guide?
What is the primary reason for your feedback ?
Thank you. We're grateful for your feedback on how to improve this tool quick-install guide.