- open .zshrc in editor
- location ->
/Users/ae
- location ->
- add
export LANG="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"Ref. System Settings -> Desktop & Dock
defaults write com.apple.dock size-immutable -bool true
killall Dockdefaults write com.apple.dock size-immutable -bool false
killall Dock- Clean-up
# 1. Remove the install folder
sudo rm -rf /usr/local/share/dotnet
# 2. Remove leftover per-user bits (if present)
rm -rf ~/.dotnet ~/.nuget/packages # optional; ~/.nuget is your package cache
# 3. List the package receipts
# pkgutil is macOS's command-line tool for inspecting the system's record of installed .pkg packages. When you install any .pkg (like the .NET SDK installer), macOS writes a receipt into a system database — a small record saying "this package, this version, was installed, and here are the files it laid down." pkgutil is how you query and manage that receipt database.
# pkgutil --pkgs — lists the identifiers of every package receipt currently registered (that's why grepping it shows all your dotnet entries).
# --forget deletes a receipt from that database
pkgutil --pkgs | grep -i dotnet # list what's registered
# then forget each one:
pkgutil --pkgs | grep '^com\.microsoft\.dotnet\.' | while read pkg; do
sudo pkgutil --forget "$pkg"
done- Reinstall
- Go to https://dotnet.microsoft.com/en-us/download/dotnet
- Download latest LTS .pgk and install - latest SDK covers
.ASP.NET Core Runtimefor previous releases - Download required <.ASP.NET Core Runtime>s for previous vertions
- open folder
/usr/local/share/dotnetand copy from archived files .tar, folder/sharedinto../dotnet/sharedand/hostinto../dotnet/host - verify by
dotnet --infothat should list .NET SDKs installed and .NET runtimes installed.