Changes between Version 154 and Version 155 of ProblemHotlist


Ignore:
Timestamp:
May 10, 2021, 10:14:13 PM (4 months ago)
Author:
ryandesign (Ryan Schmidt)
Comment:

Show how to verify whether the CLT receipt is present

Legend:

Unmodified
Added
Removed
Modified
  • ProblemHotlist

    v154 v155  
    149149== Reinstalling the command line tools == #reinstall-clt
    150150
    151 When the command line tools package is installed, a receipt is generated that can be accessed with `/usr/sbin/pkgutil`.
    152 When upgrading the OS or Xcode, this receipt can be lost even though the command line tools remain installed.
     151When the command line tools package is installed, a receipt is generated that can be accessed with `pkgutil`.
     152When upgrading macOS or Xcode, this receipt can be lost even though the command line tools remain installed.
    153153Without 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
     155To verify whether you have a CLT receipt, run this command:
     156
     157{{{
     158pkgutil --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
     161If 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.
    154162
    155163'''Fix:'''[[BR]]