Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 

Repository files navigation

general-notes

macos

zsh terminal man command returns Unknown locale, assuming C

  • open .zshrc in editor
    • location -> /Users/ae
  • add
export LANG="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"

Disable Dock size and Magnification

Ref. System Settings -> Desktop & Dock

Disable

defaults write com.apple.dock size-immutable -bool true
killall Dock

Enable

defaults write com.apple.dock size-immutable -bool false
killall Dock

dotnet cleanup/reinstall

  1. 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
  1. Reinstall
  • Go to https://dotnet.microsoft.com/en-us/download/dotnet
  • Download latest LTS .pgk and install - latest SDK covers .ASP.NET Core Runtime for previous releases
  • Download required <.ASP.NET Core Runtime>s for previous vertions
  • open folder /usr/local/share/dotnet and copy from archived files .tar, folder /shared into ../dotnet/shared and /host into ../dotnet/host
  • verify by dotnet --info that should list .NET SDKs installed and .NET runtimes installed.

About

mac, pc, general IT related notes

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors