How can I uninstall dotnet core from macOS Sierra

前端 未结 2 1383
广开言路
广开言路 2021-02-12 16:42

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).

2条回答
  •  耶瑟儿~
    2021-02-12 17:37

    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
    

提交回复
热议问题