NetCore Linux 安装卸载

NetCore Linux 安装卸载

1.SDK安装

.Net Core 3.1 SDK

sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
sudo yum install dotnet-sdk-3.1
# 检查安装是否正确,不出错就OK
dotnet --info

.Net 5 SDK

sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
sudo yum install dotnet-sdk-5.0
# 检查安装是否正确,不出错就OK
dotnet --info

2.运行环境

.Net Core 3.1 runtime

sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
sudo yum install aspnetcore-runtime-3.1

.Net 5 runtime

sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
sudo yum install aspnetcore-runtime-5.0

3.卸载

sudo yum remove dotnet-sdk-*
sudo yum remove libunwind libicu
sudo yum remove /etc/yum.repos.d/dotnetdev.repo

安装参考:https://blog.csdn.net/codeex/article/details/115485172

卸载参考:https://www.cnblogs.com/yangzhili/p/9217083.html

posted @ 2021-11-17 17:36  pizisu  阅读(676)  评论(0编辑  收藏  举报