Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install dotnet 6 on ubuntu

sudo add-apt-repository universe
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-6.0
Comment

install dotnet 5 ubuntu

Step 1 – Enable Microsoft PPA
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb 
sudo dpkg -i packages-microsoft-prod.deb 

Step 2 – Installing Dotnet Core SDK
sudo apt update 
sudo apt install apt-transport-https 
sudo apt install dotnet-sdk-3.1 

Step 3 – Install Dotnet Core Runtime Only
sudo apt update 
sudo apt install apt-transport-https 
sudo apt install dotnet-runtime-3.1 

Step 4 – Create Sample Application
dotnet new console -o HelloWorld
cd  HelloWorld
dotnet run
Comment

ubuntu dotnet 6

#For Ubuntu 20.04

#Installing with APT can be done with a few commands. 
#Before you install .NET, run the following commands to add the Microsoft 
#package signing key to your list of trusted keys and add the package 
#repository.

#Open a terminal and run the following commands:

wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb

#Install the SDK

#The .NET SDK allows you to develop apps with .NET. 
#If you install the .NET SDK, you don't need to install the corresponding 
#runtime. To install the .NET SDK, run 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
Comment

PREVIOUS NEXT
Code Example
Shell :: To check the WSL version installed on Windows 10 or 11 
Shell :: how to install latest composer in mac 
Shell :: git cancel last commit 
Shell :: datetime echo shell script 
Shell :: how to install pip in ubuntu 
Shell :: install telnet linux ubuntu 
Shell :: install postman in ubuntu 
Shell :: battery report ubuntu 
Shell :: show mac address in ubuntu 
Shell :: rvm set default 
Shell :: stylelint fix 
Shell :: linux process vs service vs daemon 
Shell :: kill all python processes ubuntu 
Shell :: Add your SSH private key to the ssh-agent. If you created your key with a different name, or if you are adding an existing key that has a different name, replace id_rsa in the command with the name of your private key file. 
Shell :: adb for ubuntu 
Shell :: fix failed to fetch in apt-get update 
Shell :: change remote origin 
Shell :: pm2 command not found 
Shell :: how reset commit git with losing changes 
Shell :: how to remove terminator from ubuntu 
Shell :: start emulator from command line 
Shell :: ssh key mac 
Shell :: number of files in subdirectories linux 
Shell :: install material-ui 
Shell :: npm i mui 
Shell :: docker-machine install mac brew 
Shell :: stop gazebo process 
Shell :: git show remote url 
Shell :: check folder sizes linux 
Shell :: bash: lsb_release: command not found 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =