Skip to content

Remove all but major versions #302

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

Open
thesutex opened this issue May 16, 2024 · 1 comment
Open

Remove all but major versions #302

thesutex opened this issue May 16, 2024 · 1 comment

Comments

@thesutex
Copy link

I'm trying to use this tool to remove unsupported versions , but choosing point versions is unintuitive as that version changes every month .

Is there a way, or can you add, so that one can say remove all except dotnet 6 and 8 as those are supported and remove the rest. Wildcard support would prob fix this with:

Dotnet-core-uninstall remove --all-but 8.0.* 6.0.* --hosting-bundle

@jrdodds
Copy link

jrdodds commented Feb 13, 2025

I use the equivalent of the following:

# Unsupported
dotnet-core-uninstall dry-run --major-minor 7.0 --runtime
dotnet-core-uninstall dry-run --major-minor 7.0 --sdk
dotnet-core-uninstall dry-run --major-minor 6.0 --runtime
dotnet-core-uninstall dry-run --major-minor 6.0 --sdk

# Cleanup
dotnet-core-uninstall dry-run --all-lower-patches --runtime
dotnet-core-uninstall dry-run --all-lower-patches --sdk

(At the time of writing 8 and 9 are the supported versions.)

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

2 participants