.net, debian,

Install .NET on Debian 11

Oct 22, 2022 · 1 min read · Post a comment

.NET framework allegedly is seldom used on Linux systems, but there are some exceptions when you might need it. Let’s see how to install .NET on Debian 11.

Prerequisites

  • Debian 11
  • sudo privileges

Install .NET on Debian 11

Step 1. You need to have wget installed.

sudo apt install wget

Step 2. Download the Microsoft packages for Debian 11.

wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb

Step 3. Install dotnet.

sudo dpkg -i packages-microsoft-prod.deb

Step 4. Remove the deb file.

rm packages-microsoft-prod.deb

Step 5. Install the SDK.

sudo apt-get update
sudo apt-get install -y dotnet-sdk-6.0

Conclusion

Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.