Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this piece of * on the Mac #259

Open
xCyborg opened this issue Apr 15, 2023 · 2 comments
Open

How to use this piece of * on the Mac #259

xCyborg opened this issue Apr 15, 2023 · 2 comments

Comments

@xCyborg
Copy link

xCyborg commented Apr 15, 2023

Would it hurt MSFT to make a GUI utility or integrate uninstall into their dotnet rubbish?
It almost sounds like deliberate.

@gortok
Copy link

gortok commented Mar 16, 2024

I'm having a heck of a time (at least on mac) understanding how I'm supposed to remove multiple versions in one fell swoop.

As a for instance, the output of ./dotnet-core-uninstall is:

This tool cannot uninstall versions of the runtime or SDK that are installed using zip/scripts. The versions that can be uninstalled with this tool are:

.NET Core SDKs:
8.0.203 (x64) [Cannot uninstall version 8.0.0 and above]
6.0.417 (x64) [Used by Visual Studio for Mac. Specify individually or use —-force to remove]
6.0.408 (x64)
5.0.400 (x64)
5.0.101 (x64)
5.0.100-rc.2.20479.15 (x64)
3.1.412 (x64)
3.1.404 (x64)
3.1.302 (x64)
3.1.301 (x64)
3.1.100 (x64)
3.0.101 (x64)
3.0.100 (x64)

.NET Core Runtimes:
8.0.3 (x64) [Cannot uninstall version 8.0.0 and above]
6.0.25 (x64) [Used by Visual Studio for Mac or SDKs. Specify individually or use —-force to remove]
6.0.16 (x64)
5.0.9 (x64) [Used by Visual Studio for Mac or SDKs. Specify individually or use —-force to remove]
5.0.1 (x64)
5.0.0-rc.2.20475.5 (x64)
5.0.0-rc.2.20475.17 (x64)
3.1.6 (x64)
3.1.5 (x64)
3.1.18 (x64) [Used by Visual Studio for Mac or SDKs. Specify individually or use —-force to remove]
3.1.10 (x64)
3.1.0 (x64)
3.0.1 (x64) [Used by Visual Studio for Mac or SDKs. Specify individually or use —-force to remove]
3.0.0 (x64)
2.1.22 (x64) [Used by Visual Studio for Mac or SDKs. Specify individually or use —-force to remove]
2.1.20 (x64)
2.1.14 (x64)
2.1.13 (x64)

And the options I have at the command line are:

Commands:
list List .NET Core SDKs or Runtimes that can be removed with this tool.
dry-run, whatif Display .NET Core SDKs and Runtimes that will be removed.
remove Remove the specified .NET Core SDKs or Runtimes.

the help doesn't specify if any particular syntax would work; nor does it show me the "all-lower-patches" option referenced elsewhere.

Admittedly, this is the first time I'm using this tool; and I prefer to do my development on a mac; so conceivably I'm looking for an easy way to remove the 20 or so runtimes I have with some sort of command like the following:

dotnet-core-uninstall remove "<8.0.0".

@cr3wdayt5p
Copy link

@gortok You can see the options for the remove command with:
dotnet-core-uninstall remove --help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants