Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

pkgutil doesn't show Xcode Command Line Tools after upgrade to macOS 11.3

I've upgraded to macOS 11.3 from macOS 11.2.3. I'd installed Xcode Command Line Tools using Homebrew. Before the upgrade, I used `pkgutil` to check if Xcode CLT was installed and I got


    % /usr/sbin/pkgutil --packages | grep CL
    com.apple.pkg.CLTools_Executables
    % /usr/sbin/pkgutil --pkg-info com.apple.pkg.CLTools_Executables
    package-id: com.apple.pkg.CLTools_Executables


After the upgrade from macOS 11.2.3 to macOS 11.3, Command Line Tools is installed and usable. However, I didn't see the same results when using `pkgutil` to check if Xcode CLT was installed.


    % xcode-select --version
    xcode-select version 2384.
    % xcode-select -p
    /Library/Developer/CommandLineTools
    % ls -l /Library/Developer/CommandLineTools
    total 0
    drwxr-xr-x  5 root  wheel  160 Jan  9 07:43 Library
    drwxr-xr-x  6 root  wheel  192 Apr 27 23:15 SDKs
    drwxr-xr-x  7 root  wheel  224 Apr 24 16:19 usr
    % brew doctor
    Your system is ready to brew.
    % /usr/sbin/pkgutil --packages | grep CL
    % /usr/sbin/pkgutil --pkg-info com.apple.pkg.CLTools_Executables
    No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.


Is it still possible to use `pkgutil` to check if Xcode CLT is installed? Has the package name or location changed?

Posted on May 8, 2021 1:39 AM

Reply

Similar questions

1 reply
Sort By: 

May 8, 2021 3:42 AM in response to danielkehoe

If you installed Xcode 12.5 after the CLTools, it may have inexplicably removed the CLTools package and receipt information. Not sure why the brew doctor command was interspersed with looking for macOS packages.


On my 11.3.1 machine, there is no trace of CLTools in /private/var/db/receipts either. It is however installed and works just fine, so the missing package information, to me at least, is not worth a second thought.

Reply

pkgutil doesn't show Xcode Command Line Tools after upgrade to macOS 11.3

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.