Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DianaofThemiscyra

macrumors member
Original poster
Mar 27, 2022
75
59
Europe
Hi everyone in the past few days the updates on the image are available for download, the problem is I never installed Xcode, nor I can find anything from Xcode installed. I'm NOT a developer and I would prefer to eliminate those updates, specially because they are big, flagged for download automatically so every time I have to un-flag them otherwise it will download.

Is there a way to know if any program uses this command line for Xcode? Is there a way to delete that (even though I can't find anything on my MacBook)?

Please help me.

Thanks in advance to everyone who will answer me.
 

Attachments

  • Screenshot 2025-10-12 at 10.25.53.png
    Screenshot 2025-10-12 at 10.25.53.png
    92.2 KB · Views: 47
  • Like
Reactions: DianaofThemiscyra
Homebrew
"macOS Requirements
Command Line Tools (CLT) for Xcode (from xcode-select --install or https://developer.apple.com/download/all/) or Xcode 3"
https://docs.brew.sh/Installation

Unrelated related :)
"Brewing Trouble: Homebrew Spoofed Sites on the Rise"
https://the-sequence.com/brewing-trouble-homebrew-spoofed-sites-rise
Thanks for your reply bogdanw. Is there a way to UNINSTALL the command line tools? I tried to instal home-brew years ago but was never able to make it work, so I uninstalled it, but as I see it left these command lines tools lost somewhere inside my hard disk.
 
Delete /Library/Developer/CommandLineTools
Good morning bogdanw,

sorry for my late answer. I don't seem to find this directory anywhere on my MacBook.

Is it hidden or "protected" with a special attribute?

Thank you and sorry again for my late answer.
 
Thanks for the code bogdanw... all I got for it is: "fg: no current job"... what this means?

Edit: typo
 
Last edited:
I realised I made a mistake while copying and pasting the code... I did it again and this time the output was this:

"xcode-select: error: Unable to get active developer directory. Use `sudo xcode-select --switch path/to/Xcode.app` to set one (or see `man xcode-select`)"
 
That result suggests the CommandLineTools folder has been deleted.

Try

Code:
pkgutil --files com.apple.pkg.CLTools_Executables

to see where they were originally installed.
 
  • Like
Reactions: DianaofThemiscyra
Good morning bogdanw,

and thanks for your help. I copied and pasted the command on terminal and it gave a very long list of files (I attached a.txt file so you can see everything).

All the files seem to be inside the directory CommandLineTools and subdirectories, but as I said CommandLinesTools directory is not there, so I don't understand how can everything is still be installed .
 

Attachments

  • Output command.txt
    406.6 KB · Views: 17
Thanks again bogdanw. I copied and pasted the command on terminal and the output was:

Unknown error Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory".
Forgot package 'com.apple.pkg.CLTools_Executables' on '/'.

I will try restarting the Macbook anyway.

Edit: Macbook restarted and updates are still there.
 
Probably the best solution would be to install the updates, check where they have been installed and delete them.

Another, untested, option is to run
Code:
pkgutil --pkgs | grep "com.apple.pkg.CLTools*"
in order to identify all pkgs related to Command Line Tools and use pkgutil --forget for each one.

Maybe someone else has other ideas. @Slartibart
 
  • Like
Reactions: DianaofThemiscyra
I decided to follow bogdanw's advice.. I installed the updates, restarted, deleted the directory Developer, restarted again. I see I have recovered the disk space used by the directory... now I just have to wait and see if in future such updates will appear again.
A big thanks to you, @bogdanw, not only for answering me but also for being spending a bit of your time trying to help me.
 
  • Like
Reactions: bogdanw
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.