Xcode Command Line Tools update not wanted, but persists

I am running Tahoe 26.4.1 on a MacBook Air, M4, 2025. In System Settings, I have an item heading of Software Update Available. Clicking on that brings up "Command Line Tools for Xcode 26.4". The only available choices are to Update Now or Cancel. In the past, I was developing a game, but have quit working on that, and deleted Xcode and Command Line Tools. Wanting the "Command Line Tools ..." line to disappear from System Settings, I called Apple Support, and at their request have followed the steps in "https://aninterestingwebsite.com/documentation/xcode/installing-the-command-line-tools" to delete this entry in System Settings, namely the 2 sudo's in that article under the section "Uninstall the command line tools". This did not cause the "Command Line Tools for Xcode 26.4" line in System Settings to disappear (as I was told by Apple support that it would, because I would be deleting the receipt). In Terminal, I did indeed receive a response of "No receipt for 'com.apple.dt.commandlinetools' found at '/'.". I have called developer support, but the individual I spoke with had no useful guidance on how to finish this issue, except to post to the Forum. I would appreciate any guidance on how to delete the "Command Line Tools ..." entry from System Settings.

Answered by DTS Engineer in 885502022

Thanks so much for this post. That documentation you provided should have work on this sections https://aninterestingwebsite.com/documentation/xcode/installing-the-command-line-tools#Uninstall-the-Command-Line-Tools-for-Xcode-package

sudo rm -rf /Library/Developer/CommandLineTools

To delete the package receipt, run the sudo pkgutil command with the --forget option in Terminal:

sudo pkgutil --forget com.apple.dt.commandlinetools

I would recommend to go over all the steps on the documentation

If the task succeeds, pkgutil prints the following message:

sudo pkgutil --forget com.apple.dt.commandlinetools
No receipt for 'com.apple.dt.commandlinetools' found at '/'.

Albert
  Worldwide Developer Relations.

Thanks so much for this post. That documentation you provided should have work on this sections https://aninterestingwebsite.com/documentation/xcode/installing-the-command-line-tools#Uninstall-the-Command-Line-Tools-for-Xcode-package

sudo rm -rf /Library/Developer/CommandLineTools

To delete the package receipt, run the sudo pkgutil command with the --forget option in Terminal:

sudo pkgutil --forget com.apple.dt.commandlinetools

I would recommend to go over all the steps on the documentation

If the task succeeds, pkgutil prints the following message:

sudo pkgutil --forget com.apple.dt.commandlinetools
No receipt for 'com.apple.dt.commandlinetools' found at '/'.

Albert
  Worldwide Developer Relations.

Thanks for your answer. As I already explained, I did those steps, got the answer suggested, but it did not fix the problem. That it "should have" is clear, but it did not. My ~/Library/Developer folder is empty. What further step is needed, is what I am asking in my post.

@BillInPoint

Thanks for your answer. As I already explained, I did those steps, got the answer suggested, but it did not fix the problem.

Please file a Feedback report using Feedback Assistant, post the ID here.

@BillInPoint Those are the official documentation steps that fixed the issue. We should investigate why isn't working for you. May I ask you to do some experimentation for me before we file a bug?

I’m not positive as I did not want to test it in any of my computers, but I believe you can do this by running a few commands by opening the terminal and run the following command to delete the hidden file that triggers the update prompt from this documentation https://discussions.apple.com/thread/254465907?sortBy=rank

sudo rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress

Sometimes the system is still internally pointing to the deleted developer directory. Resetting it ensures macOS knows the tools are truly gone from https://discussions.apple.com/thread/253466183?sortBy=rank

sudo xcode-select --reset

Next, clear the cache where macOS stores pending software updates, and force the update daemon to restart from https://discussions.apple.com/thread/253598128?sortBy=rank

sudo rm -rf /Library/Caches/com.apple.SoftwareUpdate/*
sudo killall -9 softwareupdated

Finally, tell macOS to check for updates from scratch. This will rebuild the list without the Command Line Tools (deprecated and I have not tested) https://aninterestingwebsite.com/documentation/devicemanagement/softwareupdate

softwareupdate -l

Please let me know if that worked otherwise let's file a bug to see why your computer is having that issue.

Albert
  Worldwide Developer Relations.

Here is what happened:
xxx/ % sudo rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress Password: xxx/ % sudo rm -rf /Library/Caches/com.apple.SoftwareUpdate/* sudo killall -9 softwareupdated zsh: no matches found: /Library/Caches/com.apple.SoftwareUpdate/* killall: warning: kill -kill 555: Operation not permitted xxx/ % softwareupdate -l Software Update Tool

Finding available software Software Update found the following new or updated software:

  • Label: Command Line Tools for Xcode 26.4-26.4.1 Title: Command Line Tools for Xcode 26.4, Version: 26.4.1, Size: 920104KiB, Recommended: YES,

xxx/ %

I think is time to file the bug and let's get to the bottom of the issue. Please file a Feedback report and post the ID here.

Thanks

Albert
  Worldwide Developer Relations.

This set of steps did not work. I have submitted a Feedback report, but was not given a number I can see, that I can report to you.

@BillInPoint

xxx/ % sudo rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress Password: xxx/ % sudo rm -rf /Library/Caches/com.apple.SoftwareUpdate/* sudo killall -9 softwareupdated zsh: no matches found: /Library/Caches/com.apple.SoftwareUpdate/* killall: warning: kill -kill 555: Operation not permitted xxx/ % softwareupdate -l

The proper command to remove the tools:

sudo rm -rf /Library/Developer/CommandLineTools

After you remove the tools, you need to delete the package receipt:

sudo pkgutil --forget com.apple.dt.commandlinetools

If your issue persists after following the above steps, then this is a bug that needs to be investigated.

Furthermore, Terminal responded that sysdiagnose must be run as root. I don't know how to do that.

Your latest set of commands did not work. I still have the Software Update Available line in System Settings. Please tell me again just what you want me to do at this point.

Feedback Assistant #=FB22593447

@BillInPoint

You can see the status of your feedback in Feedback Assistant. There, you can track if the report is still being investigated, has a potential identifiable fix, or has been resolved in another way. The status appears beside the label "Resolution." We're unable to share any updates on specific reports on the forums.

For more details on when you'll see updates to your report, please see What to expect after submission.

Albert
  Worldwide Developer Relations.

Xcode Command Line Tools update not wanted, but persists
 
 
Q