cli-lab icon indicating copy to clipboard operation
cli-lab copied to clipboard

Remove specific architecture

Open AdalyatNazirov opened this issue 1 year ago • 3 comments

My setup is MacOS 13.2.1. Installations looks like this

dotnet --info image

dotnet-core-uninstall list image

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?

AdalyatNazirov avatar Mar 24 '23 18:03 AdalyatNazirov

I'm not sure that we support uninstalling arm64 - looks like we only have flags for x86 and x64. @joeloff what do you think?

baronfel avatar Mar 24 '23 18:03 baronfel

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.

joeloff avatar Mar 24 '23 19:03 joeloff

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.

AdalyatNazirov avatar Mar 24 '23 20:03 AdalyatNazirov