With the release of Debian 11, developers are going through multiple changes and updates.
Here at LinuxAPT, we shall look into how to update the dot Net Framework on your Debian 11 Linux system.
1. Add the .Net SDK Keys on Debian
To begin, you need to update your system with the below commands:
$ sudo apt update
$ sudo apt dist-upgrade
The Debian system will be ready to install .Net once the core operating system is updated and upgraded. Now add the security keys using the below commands:
$ wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
$ sudo dpkg -i packages-microsoft-prod.deb
$ rm packages-microsoft-prod.deb
As soon as you run these commands, all the related repositories will be available for you.
2. Install the .Net SDK 6
Now we will perform the installation using the following commands:
$ sudo apt-get update
$ sudo apt-get install -y apt-transport-https
$ sudo apt-get update
$ sudo apt-get install -y dotnet-sdk-6.0
3. Install the .Net Runtime
The .Net SDK will be useless without .Net runtime. Use the following commands to install the runtime:
$ sudo apt-get update
$ sudo apt-get install -y apt-transport-https
$ sudo apt-get update
$ sudo apt-get install -y aspnetcore-runtime-6.0
4. Verify the Installation of .Net 6
Now we will verify the installation of .Net 6 on the Debian 11 system. It is simple to check the existence of the software with the below command:
$ dotnet --version
You can use the following command and you are ready to remove the .Net packages:
$ sudo apt remove dotnet-sdk-6.0
This article covers how to install both .Net SDK and Runtime on your Debian 11 Linux system. In fact, .NET Core is the modular and high performance implementation of .NET for creating web applications and services that run on Windows, Linux and Mac.