netcore安装与卸载

按照官网的指示安装netcore3.0,但是运行时提示需要netcore2.2,为保持干净,尝试卸载netcore3.0。

yum remove netcore

失败,原因是没有提供正确的包名。使用rpm查询:

rpm -qa | grep netcore # q表示查询,a表示所有

查找失败。后经排查,我安装的是dotnet-runtime-3.0的运行时:

    官网上的文档:“The previous command will install the .NET Core Runtime Bundle, which includes the .NET Core runtime and the ASP.NET Core runtime. To install just the .NET Core runtime, use the dotnet-runtime-3.0 package.”

按dotnet查找:

rpm -qa | grep dotnet

可以找到对应的运行时,然后通过rpm erase将包及依赖一一删除。

猜你喜欢

转载自www.cnblogs.com/Jackie-Snow/p/11683408.html
今日推荐