[MacPorts] ProblemHotlist modified

MacPorts Wiki noreply at macports.org
Mon May 10 22:14:13 UTC 2021


Page "ProblemHotlist" was changed by ryandesign
Diff URL: <https://trac.macports.org/wiki/ProblemHotlist?action=diff&version=155>
Revision 155
Comment: Show how to verify whether the CLT receipt is present
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: ProblemHotlist
=========================================================================
--- ProblemHotlist (version: 154)
+++ ProblemHotlist (version: 155)
@@ -148,9 +148,17 @@
 
 == Reinstalling the command line tools == #reinstall-clt
 
-When the command line tools package is installed, a receipt is generated that can be accessed with `/usr/sbin/pkgutil`.
-When upgrading the OS or Xcode, this receipt can be lost even though the command line tools remain installed.
+When the command line tools package is installed, a receipt is generated that can be accessed with `pkgutil`.
+When upgrading macOS or Xcode, this receipt can be lost even though the command line tools remain installed.
 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.
+
+To verify whether you have a CLT receipt, run this command:
+
+{{{
+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'
+}}}
+
+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.
 
 '''Fix:'''[[BR]]
 
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/ProblemHotlist>
MacPorts <https://www.macports.org/>
Ports system for macOS

This is an automated message. Someone added your email address to be
notified of changes on 'ProblemHotlist' page.
If it was not you, please report to admin at macports.org.


More information about the macports-changes mailing list