如何从macOS Sierra卸载dotnet core [英] How can I uninstall dotnet core from macOS Sierra

查看:88
本文介绍了如何从macOS Sierra卸载dotnet core的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试安装dotnet core,但是没有用.因此,我想将其卸载并开始刷新.如何从macOS Sierra(10.12.3)卸载dotnet core.

I have tried to install dotnet core, but it does not worked. So, I would like to uninstall it and start refresh. How can I uninstall dotnet core from macOS Sierra(10.12.3).

您可以在下面找到系统上现有的dotnet核心信息

you can find below, existing dotnet core info on the system

/usr/local/share/dotnet/sdk$ ls -la
total 0
drwxr-xr-x    4 root  wheel   136 May 20 18:28 .
drwxr-xr-x   10 root  wheel   340 May 20 20:44 ..
drwxr-xr-x  142 root  wheel  4828 May 20 20:44 1.0.4
drwxr-xr-x  121 root  wheel  4114 May  9 23:04 2.0.0-preview1-005977


/usr/local/share/dotnet/sdk$ sudo find / -name dotnet
find: /dev/fd/sdk: No such file or directory
find: /dev/fd/sdk: No such file or directory
/private/etc/paths.d/dotnet
/Users/melihtt/.dotnet/NuGetFallbackFolder/microsoft.codeanalysis.analyzers/1.1.0/analyzers/dotnet
/Users/melihtt/.dotnet/optimizationdata/2.0.0-preview1-005977/osx.10.12-x64/dotnet
/usr/local/share/dotnet
/usr/local/share/dotnet/dotnet
/usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.0.5/dotnet
/usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.1.2/dotnet

推荐答案

要从macOS卸载dotnet core:

To uninstall dotnet core from macOS:

  1. download dotnet-uninstall-pkgs.sh from https://github.com/dotnet/cli/blob/master/scripts/obtain/uninstall/dotnet-uninstall-pkgs.sh
  2. make dotnet-uninstall-pkgs.sh executable
  3. execute dotnet-uninstall-pkgs.sh as root (requires superuser privileges to run).

curl -O https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/uninstall/dotnet-uninstall-pkgs.sh
chmod u+x dotnet-uninstall-pkgs.sh
sudo ./dotnet-uninstall-pkgs.sh

这篇关于如何从macOS Sierra卸载dotnet core的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆