Unwanted Command Line Tools update

Hello,

I cancelled the heavy xCode App since I finally it turned out that I did not need it, and removed all files from the Library (the Developer files). According to Clean My Mac I have NO junk from xCode. However I keep on having this "Command Line Tools update" (right now 2 of them) which I do not want at all. I am running Monterey 12.3.1 on a Macbook Pro. If anyone knows how to cancel those updates and prevent them to appear again I would be REALLY GRATEFUL


MacBook Pro (2020 and later)

Posted on May 12, 2022 2:17 PM

Reply
Question marked as Top-ranking reply

Posted on May 12, 2022 4:28 PM

AJRV7 wrote:

Hello,
I cancelled the heavy xCode App since I finally it turned out that I did not need it, and removed all files from the Library (the Developer files). According to Clean My Mac I have NO junk from xCode. However I keep on having this "Command Line Tools update" (right now 2 of them) which I do not want at all. I am running Monterey 12.3.1 on a Macbook Pro. If anyone knows how to cancel those updates and prevent them to appear again I would be REALLY GRATEFUL


https://discussions.apple.com/content/attachment/02c30ec1-03d8-4f79-854f-926249eb69e1


Uninstalling Xcode Developer Tools


To uninstall Xcode developer tools on the boot volume along with the <Xcode> directory, from a Terminal window type:

sudo <Xcode>/Library/uninstall-devtools --mode=all


To remove the underlying developer content on the boot volume, but leave the <Xcode> directory and supporting files untouched, from a Terminal window type:

sudo <Xcode>/Library/uninstall-devtools --mode=systemsupport


To just remove the UNIX development support and command line tools on the boot volume, but leave the <Xcode> directory and supporting files untouched, from a Terminal window type:

sudo <Xcode>/Library/uninstall-devtools --mode=unixdev


Finally, to just uninstall the <Xcode> directory you can simply drag it to the trash, or from a Terminal window type:

sudo <Xcode>/Library/uninstall-devtools --mode=xcodedir


NOTE: The uninstaller that ships with previous versions of the Xcode developer tools will not clean everything off of your system properly. You should use the one installed with these Xcode developer tools.



8 replies
Question marked as Top-ranking reply

May 12, 2022 4:28 PM in response to AJRV7

AJRV7 wrote:

Hello,
I cancelled the heavy xCode App since I finally it turned out that I did not need it, and removed all files from the Library (the Developer files). According to Clean My Mac I have NO junk from xCode. However I keep on having this "Command Line Tools update" (right now 2 of them) which I do not want at all. I am running Monterey 12.3.1 on a Macbook Pro. If anyone knows how to cancel those updates and prevent them to appear again I would be REALLY GRATEFUL


https://discussions.apple.com/content/attachment/02c30ec1-03d8-4f79-854f-926249eb69e1


Uninstalling Xcode Developer Tools


To uninstall Xcode developer tools on the boot volume along with the <Xcode> directory, from a Terminal window type:

sudo <Xcode>/Library/uninstall-devtools --mode=all


To remove the underlying developer content on the boot volume, but leave the <Xcode> directory and supporting files untouched, from a Terminal window type:

sudo <Xcode>/Library/uninstall-devtools --mode=systemsupport


To just remove the UNIX development support and command line tools on the boot volume, but leave the <Xcode> directory and supporting files untouched, from a Terminal window type:

sudo <Xcode>/Library/uninstall-devtools --mode=unixdev


Finally, to just uninstall the <Xcode> directory you can simply drag it to the trash, or from a Terminal window type:

sudo <Xcode>/Library/uninstall-devtools --mode=xcodedir


NOTE: The uninstaller that ships with previous versions of the Xcode developer tools will not clean everything off of your system properly. You should use the one installed with these Xcode developer tools.



May 13, 2022 3:48 AM in response to ku4hx

Thanks a lot. Still it did not work. Terminal says I have no such files, etc. etc., but the annoying updates are still there. Well, at least I seem to have gotten rid of the xCode files and the space they were taking. It is a shame on Apple that it is not easier to remove. Anyway I have not said my last word on this and I hope there is an easy way out soon.


By the way, your comment about CleanMyMac stroke me, coming from someone with your level.

May 13, 2022 4:18 AM in response to AJRV7

AJRV7 wrote:

Thank you again!. Hard luck though!. I finally get this: "No receipt for 'com.apple.pkg.CLTools_Executables.' found at '/'.
....@MacBook-Pro ~ %" It seems I have no commandline tools. So what would it update?  We'll see some day. The bright side is that is nothing critical, just a nuisance.


Contact—

Xcode - Support - Apple Developer

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Unwanted Command Line Tools update

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