Changes between Version 154 and Version 155 of ProblemHotlist
- Timestamp:
- May 10, 2021, 10:14:13 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ProblemHotlist
v154 v155 149 149 == Reinstalling the command line tools == #reinstall-clt 150 150 151 When the command line tools package is installed, a receipt is generated that can be accessed with ` /usr/sbin/pkgutil`.152 When upgrading theOS or Xcode, this receipt can be lost even though the command line tools remain installed.151 When the command line tools package is installed, a receipt is generated that can be accessed with `pkgutil`. 152 When upgrading macOS or Xcode, this receipt can be lost even though the command line tools remain installed. 153 153 Without this receipt, MacPorts cannot determine which version of the command line tools package is installed, and worse, Software Update will never update the CLTs. 154 155 To verify whether you have a CLT receipt, run this command: 156 157 {{{ 158 pkgutil --pkg-info=com.apple.pkg.CLTools_Executables --pkg-info=com.apple.pkg.CLTools_Base --pkg-info=com.apple.pkg.DeveloperToolsCLI --pkg-info=com.apple.pkg.DeveloperToolsCLILeo 2>/dev/null | sed -n 's/^version: //p' 159 }}} 160 161 If it prints a version number, that's the version of the CLT that are installed, according to the receipt. If it doesn't print anything, you don't have a receipt and should reinstall the CLT as follows. 154 162 155 163 '''Fix:'''[[BR]]