Date:

Share:

How to install .NET 6 on Pop!_OS

Related Articles

7490

This week has been a great week for .NET developers. .NET 6 finally here And it’s amazing.

Do you want to install .NET 6 on your Pop_OS computer? One problem with Pop! _OS, is not Appears in official Microsoft documentation. There are no really clear instructions for weirdos like me who like to develop .NET applications with this operating system.

No problem, it’s based on Ubuntu, right? So the Ubuntu or Snap instructions should work but they are not.

You can activate the Dotnet script, And I noticed that sometimes it works, and sometimes it’s complicated. You should also use sudo every time you run it dotnet command. Not optimal.

This will allow you to install .NET 6 in Pop! _OS.

  • Do not use Snap (it will not work)
  • Do not use dotnet script (results may be insane)

Do it instead.

How to install .NET 6

A simple change to Ubuntu’s instructions works great.

First, do the following:

mkdir ~/src && cd ~/src
wget https://packages.microsoft.com/config/ubuntu/21.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb

It defines the appropriate packages.

Then, update everything:

sudo apt-get update; 
sudo apt-get install -y apt-transport-https && 
sudo apt-get update

big! You can now install the latest SDK and runtime.

To install the .NET SDK:

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

To install ASP.NET Core Runtime:

sudo apt-get install -y aspnetcore-runtime-6.0

And you’re done !!

How to install .NET 6 in Pop! _OS

Note: I also have .NET Core 5 installed, your screen may not look like this

Try this

You can test your installation by building a small app.

dotnet new console -o HelloWorld

How to install .NET 6 in Pop! _OS

You can now open your Hello World app, make a few changes and launch it:

How to install .NET 6 in Pop! _OS

You may notice something else. It’s just one line! The template has changed with C # 10, and this is just the beginning. Dig in and enjoy!

Questions, Comments? Let me know!


linux course
Want to learn more about Linux? Of course you are. Check it Linux Basics Course. You can sign up no Free trial here And take it today!



Source

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Popular Articles