按照官网的指示安装netcore3.0,可是运行时提示须要netcore2.2,为保持干净,尝试卸载netcore3.0。code
yum remove netcorerem
失败,缘由是没有提供正确的包名。使用rpm查询:文档
rpm -qa | grep netcore # q表示查询,a表示全部io
查找失败。后经排查,我安装的是dotnet-runtime-3.0的运行时:grep
官网上的文档:“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.”command
按dotnet查找:im
rpm -qa | grep dotnetyum
能够找到对应的运行时,而后经过rpm erase将包及依赖一一删除。查询