netcore安裝與卸載

按照官網的指示安裝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將包及依賴一一刪除。查詢

相關文章
相關標籤/搜索