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