How to deploy Microsoft .NET in Ubuntu Linux
Case
You need to deploy Microsoft .NET on your Linux machine. In this how-to article, we will show you to the .NET framework 6 on Ubuntu Linux LTS 22.04.
Solution
Go through the following steps:
- Run the following commands in your Linux Ubuntu Powershell core terminal.
![](https://stefanos.cloud/wp-content/uploads/2022/06/image-20.png)
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
![](https://stefanos.cloud/wp-content/uploads/2022/06/image-21-1024x354.png)
- Install the .NET SDK (instead of the runtime only) by running 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
- To verify the .NET installation on your Ubuntu machine, run the following commands:
dotnet --list-sdks
dotnet --list-runtimes
dotnet --info
![](https://stefanos.cloud/wp-content/uploads/2022/06/image-22.png)
![](https://stefanos.cloud/wp-content/uploads/2022/06/image-23.png)
References
https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
https://stefanos.cloud/kb/how-to-deploy-microsoft-net-in-ubuntu-linux/
Comments
Post a Comment