cli-lab
cli-lab copied to clipboard
Remove specific architecture
My setup is MacOS 13.2.1. Installations looks like this
dotnet --info
dotnet-core-uninstall list
As you can see I have .NET Runtime for Arm64 and x64. But I cannot figure out how to remove 7.0.4 (x64)
only, but not arm64
.
Is it possible to uninstall .NET Runtime of specific architecture?
I'm not sure that we support uninstalling arm64 - looks like we only have flags for x86 and x64. @joeloff what do you think?
At the moment I don't think you can do that sort of targeting. You'd have to remove 7.0.4 and the probably reinstall only the arm64 copy. Probably a good thing to support, e.g. someone had multiple x64 copies on an arm machine. but wants to only use the arm versions and remove all the x64 copies.
thanks for quick reply
right, its kind of requirements to have both arm64
and x64
if you want to use LibraryManager CLI tool on mac.
Nowadays you cannot use libman without x64 https://github.com/aspnet/LibraryManager/issues/708
So If we have to install alternative architecture, it would be nice to manage architectures too.
Speaking about workaround you proposed. Do you think that if I force remove 7.0.4 it will remove all architectures? Tbh I didn't try it yet.