Changes between Version 156 and Version 157 of ProblemHotlist


Ignore:
Timestamp:
Nov 6, 2021, 2:37:20 PM (2 years ago)
Author:
breun (Nils Breunese)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ProblemHotlist

    v156 v157  
    185185== Reinstalling the command line tools == #reinstall-clt
    186186
    187 When the command line tools package is installed, a receipt is generated that can be accessed with `pkgutil`.
    188 When upgrading macOS or Xcode, this receipt can be lost even though the command line tools remain installed.
    189 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.
    190 
    191 To verify whether you have a CLT receipt, run this command:
     187When the Command Line Tools package is installed, a receipt is generated that can be accessed with `pkgutil`.
     188When upgrading macOS or Xcode, this receipt can be lost even though the Command Line Tools remain installed.
     189Without this receipt, MacPorts cannot determine which version of the Command Line Tools package is installed, and worse, Software Update will never update the Command Line Tools.
     190
     191To verify whether you have a Command Line Tools receipt, run this command:
    192192
    193193{{{
     
    195195}}}
    196196
    197 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.
     197If it prints a version number, that's the version of the Command Line Tools that are installed, according to the receipt. If it doesn't print anything, you don't have a receipt and should reinstall the Command Line Tools as follows.
    198198
    199199'''Fix:'''[[BR]]
    200200
    201 Reinstalling the command line tools package fixes the problem (however future updates will cause it to recur until Apple fixes the bug).
    202 * Download the command line tools package from the [https://developer.apple.com/download/more/?=command%20line%20tools Apple Developer] site.
    203 * If the version of the CLT you need is not listed at the developer site, but an older version is, reinstalling that will restore the package receipts. Then just run Software Update to trigger the update to the newer version.
    204 * Or, on OS X 10.9 or greater, Software Update can reinstall the package:
     201Reinstalling the Command Line Tools package fixes the problem (however future updates will cause it to recur until Apple fixes the bug).
     202
     203On Mac OS X 10.9 Mavericks or later, Software Update can reinstall the package:
    205204  * {{{touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress}}}
    206205  * {{{softwareupdate -l}}}
    207   * [https://support.apple.com/en-us/HT201541 Run Software Update] and install the command line tools. If more than one version is presented, select only the version that matches your Xcode version.
     206  * [https://support.apple.com/en-us/HT201541 Run Software Update] and install the Command Line Tools. If more than one version is presented, select only the version that matches your Xcode version.
    208207  * {{{rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress}}}
    209 Please note that Software Update will continue to list the command line tools package as outdated so long as the file `/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress` exists.[[BR]]
    210 Be sure to remove it once the package is reinstalled.
     208  * Software Update will continue to list the Command Line Tools package as outdated so long as the file `/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress` exists, so don't forget to run the previous command to remove it.
     209
     210On Mac OS X versions older than 10.9 you'll need to download and install the Command Line Tools package again yourself:
     211* Download and install the Command Line Tools package from the [https://developer.apple.com/download/more/?=command%20line%20tools Apple Developer] site.
     212* If the version of the Command Line Tools you need is not listed at the developer site, but an older version is, reinstalling that will restore the package receipts. Then just run Software Update to trigger the update to the newer version.
     213
     214If you've had to reinstall the Command Line Tools because of this bug, consider reporting this issue to Apple via the Feedback Assistant application or https://feedbackassistant.apple.com.
    211215
    212216{{{