7 mounted under CentOS .NET Core SDK 2.1

A, the RPM package installation

1, into the source rpm

Sudo rpm Uvh https: // packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm

2. Update Package

sudo yum -y update

3, install the SDK

sudo yum -y install dotnet-sdk-2.1

4, verify that the installation was successful

dotnet --version

Second, manually download & install

1, download the SDK ( SDK list )

In selecting x64 version can (only need to click the link to get back to the actual download address) Binaries this column

cd /home/downloads
wget --no-check-certificate -O dotnet-sdk-2.1.tar.gz https://download.microsoft.com/download/4/0/9/40920432-3302-47a8-b13c-bbc4848ad114/dotnet-sdk-2.1.302-linux-x64.tar.gz

2, create & SDK folder to unzip the SDK specified folder

sudo mkdir -p /usr/dotnet/dotnet-2.1 && sudo tar zxf dotnet-sdk-2.1.tar.gz -C /usr/dotnet/dotnet-2.1

3, dependent on the mounting base

sudo yum -y install libicu

4. Create a soft link

sudo ln -s /usr/dotnet/dotnet-2.1/dotnet /usr/local/bin

5, check whether the installation was successful

dotnet --version

 

Reprinted: https://ken.io/note/centos7-.netcore2.1-setup

 

Guess you like

Origin www.cnblogs.com/hellocjr/p/11428166.html