Centos7离线安装.NETCore3.1 环境
有网的情况下把离线包下载到电脑上
1.安装libicu依赖和yum源
# 安装libicu依赖
sudo yum install -y libunwind libicu
# 安装yum源
sudo yum install -y https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
2.有网的情况下把离线包下载到电脑上
sudo yum install --downloadonly --downloaddir=/tmp/dotnet-sdk-3.1 dotnet-sdk-3.1
sudo yum install --downloadonly --downloaddir=/tmp/aspnetcore-runtime-3.1 aspnetcore-runtime-3.1
sudo yum install --downloadonly --downloaddir=/tmp/dotnet-runtime-3.1 dotnet-runtime-3.1
离线包拷贝离线进行安装。
安装指令 rpm -ivh *.rpm
查看是否安装成功指令:
dotnet --info
dotnet --list-runtimes