在终端输入命令:
sudo yum install libunwind libicu #(安装libicu依赖)
安装完成后,打开:https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install 或者https://docs.microsoft.com/en-us/dotnet/core/install/linux-rhel
根据页面提示中执行相关终端命令:
cat /proc/version #查看系统版本,安装对应的sdk
依次执行以下命令:
sudo yum install scl-utils
yum install -y epel-release
wget -O /etc/yum.repos.d/epel-rhsm.repo http://repos.fedorapeople.org/repos/candlepin/subscription-manager/epel-subscription-manager.repo
yum install subscription-manager -y
sudo rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm
sudo yum update
sudo yum install dotnet-sdk-5.0
安装dotnetcore之后,执行命令:dotnet,出现如下提示,说明安装成功。
原文:https://www.cnblogs.com/dongml/p/11105020.html