Xcode 6.1 - How to uninstall command line tools?












44















I installed Xcode command line tool by issuing xcode-select --install; now I want to uninstall it (without uninstalling Xcode).



I've tried



sudo /Developer/Library/uninstall-devtools --mode=all


but then I get the error



sudo: /Developer/Library/uninstall-devtools: command not found









share|improve this question




















  • 2





    I believe your $PATH is messed up? What's the output when you type which sudo or whereis sudo? Hopefully it prints something like /usr/bin/sudo?

    – aug
    Dec 12 '14 at 7:02








  • 3





    developer.apple.com/library/ios/technotes/tn2339/_index.html#//…

    – Matthias Bauch
    Dec 12 '14 at 7:56
















44















I installed Xcode command line tool by issuing xcode-select --install; now I want to uninstall it (without uninstalling Xcode).



I've tried



sudo /Developer/Library/uninstall-devtools --mode=all


but then I get the error



sudo: /Developer/Library/uninstall-devtools: command not found









share|improve this question




















  • 2





    I believe your $PATH is messed up? What's the output when you type which sudo or whereis sudo? Hopefully it prints something like /usr/bin/sudo?

    – aug
    Dec 12 '14 at 7:02








  • 3





    developer.apple.com/library/ios/technotes/tn2339/_index.html#//…

    – Matthias Bauch
    Dec 12 '14 at 7:56














44












44








44


7






I installed Xcode command line tool by issuing xcode-select --install; now I want to uninstall it (without uninstalling Xcode).



I've tried



sudo /Developer/Library/uninstall-devtools --mode=all


but then I get the error



sudo: /Developer/Library/uninstall-devtools: command not found









share|improve this question
















I installed Xcode command line tool by issuing xcode-select --install; now I want to uninstall it (without uninstalling Xcode).



I've tried



sudo /Developer/Library/uninstall-devtools --mode=all


but then I get the error



sudo: /Developer/Library/uninstall-devtools: command not found






xcode command-line-tool






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 3 '16 at 16:27









Aaron Brager

53.2k14114222




53.2k14114222










asked Dec 12 '14 at 6:58









TomNgTomNg

92621023




92621023








  • 2





    I believe your $PATH is messed up? What's the output when you type which sudo or whereis sudo? Hopefully it prints something like /usr/bin/sudo?

    – aug
    Dec 12 '14 at 7:02








  • 3





    developer.apple.com/library/ios/technotes/tn2339/_index.html#//…

    – Matthias Bauch
    Dec 12 '14 at 7:56














  • 2





    I believe your $PATH is messed up? What's the output when you type which sudo or whereis sudo? Hopefully it prints something like /usr/bin/sudo?

    – aug
    Dec 12 '14 at 7:02








  • 3





    developer.apple.com/library/ios/technotes/tn2339/_index.html#//…

    – Matthias Bauch
    Dec 12 '14 at 7:56








2




2





I believe your $PATH is messed up? What's the output when you type which sudo or whereis sudo? Hopefully it prints something like /usr/bin/sudo?

– aug
Dec 12 '14 at 7:02







I believe your $PATH is messed up? What's the output when you type which sudo or whereis sudo? Hopefully it prints something like /usr/bin/sudo?

– aug
Dec 12 '14 at 7:02






3




3





developer.apple.com/library/ios/technotes/tn2339/_index.html#//…

– Matthias Bauch
Dec 12 '14 at 7:56





developer.apple.com/library/ios/technotes/tn2339/_index.html#//…

– Matthias Bauch
Dec 12 '14 at 7:56












3 Answers
3






active

oldest

votes


















49














If you installed the command line tools separately, delete them using:



rm -rf /Library/Developer/CommandLineTools





share|improve this answer





















  • 8





    Or more exactly, sudo rm -rf /Library/Developer/CommandLineTools

    – Ingemar Ragnemalm
    Aug 18 '16 at 9:52






  • 1





    No such directory for Xcode 8

    – DawnSong
    Dec 23 '16 at 4:36











  • sudo rm -r CommandLineTools is enough, force here you need don't

    – Heiner
    Jun 18 '18 at 8:26



















36





+50









An excerpt from an apple technical note (Thanks to matthias-bauch)




Xcode includes all your command-line tools. If it is installed on your
system, remove it to uninstall your tools.



If your tools were downloaded separately from Xcode, then they are
located at /Library/Developer/CommandLineTools on your system. Delete
the CommandLineTools
folder to uninstall them.




you could easily delete using terminal:



Here is an article that explains how to remove the command line tools but do it at your own risk.Try this only if any of the above doesn't work.






share|improve this answer





















  • 2





    This path doesn't exist on my machine...

    – Sam Odio
    May 2 '15 at 6:11











  • Which OS are you using ? Try this on terminal cd /Library/Developer/CommandLineTools If you get No such file or directory then the path is not there for sure.

    – Durai Amuthan.H
    May 2 '15 at 17:25











  • "technical note" link doesn't work for me

    – JBallin
    Feb 6 '18 at 19:59











  • I am able to access it. I think the link is blocked by firewall or something

    – Durai Amuthan.H
    Feb 6 '18 at 20:30











  • What's more important, removing this directory doesn't let xcode-select --install work

    – Jason
    Apr 24 '18 at 18:35





















2














You can simply delete this folder




/Library/Developer/CommandLineTools




Please note: This is the root /Library, not user's ~/Library).






share|improve this answer


























  • No - that doesn't do it... removed the directory... command still works.

    – sea26.2
    Jun 20 '17 at 21:04











  • Seems your command line tools are not installed separately, and it is installed through Xcode.

    – MrDEV
    Jun 27 '17 at 9:36













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f27438457%2fxcode-6-1-how-to-uninstall-command-line-tools%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes









49














If you installed the command line tools separately, delete them using:



rm -rf /Library/Developer/CommandLineTools





share|improve this answer





















  • 8





    Or more exactly, sudo rm -rf /Library/Developer/CommandLineTools

    – Ingemar Ragnemalm
    Aug 18 '16 at 9:52






  • 1





    No such directory for Xcode 8

    – DawnSong
    Dec 23 '16 at 4:36











  • sudo rm -r CommandLineTools is enough, force here you need don't

    – Heiner
    Jun 18 '18 at 8:26
















49














If you installed the command line tools separately, delete them using:



rm -rf /Library/Developer/CommandLineTools





share|improve this answer





















  • 8





    Or more exactly, sudo rm -rf /Library/Developer/CommandLineTools

    – Ingemar Ragnemalm
    Aug 18 '16 at 9:52






  • 1





    No such directory for Xcode 8

    – DawnSong
    Dec 23 '16 at 4:36











  • sudo rm -r CommandLineTools is enough, force here you need don't

    – Heiner
    Jun 18 '18 at 8:26














49












49








49







If you installed the command line tools separately, delete them using:



rm -rf /Library/Developer/CommandLineTools





share|improve this answer















If you installed the command line tools separately, delete them using:



rm -rf /Library/Developer/CommandLineTools






share|improve this answer














share|improve this answer



share|improve this answer








edited Oct 2 '18 at 14:05









JakeGould

20.6k84775




20.6k84775










answered Apr 24 '15 at 23:55









Aaron BragerAaron Brager

53.2k14114222




53.2k14114222








  • 8





    Or more exactly, sudo rm -rf /Library/Developer/CommandLineTools

    – Ingemar Ragnemalm
    Aug 18 '16 at 9:52






  • 1





    No such directory for Xcode 8

    – DawnSong
    Dec 23 '16 at 4:36











  • sudo rm -r CommandLineTools is enough, force here you need don't

    – Heiner
    Jun 18 '18 at 8:26














  • 8





    Or more exactly, sudo rm -rf /Library/Developer/CommandLineTools

    – Ingemar Ragnemalm
    Aug 18 '16 at 9:52






  • 1





    No such directory for Xcode 8

    – DawnSong
    Dec 23 '16 at 4:36











  • sudo rm -r CommandLineTools is enough, force here you need don't

    – Heiner
    Jun 18 '18 at 8:26








8




8





Or more exactly, sudo rm -rf /Library/Developer/CommandLineTools

– Ingemar Ragnemalm
Aug 18 '16 at 9:52





Or more exactly, sudo rm -rf /Library/Developer/CommandLineTools

– Ingemar Ragnemalm
Aug 18 '16 at 9:52




1




1





No such directory for Xcode 8

– DawnSong
Dec 23 '16 at 4:36





No such directory for Xcode 8

– DawnSong
Dec 23 '16 at 4:36













sudo rm -r CommandLineTools is enough, force here you need don't

– Heiner
Jun 18 '18 at 8:26





sudo rm -r CommandLineTools is enough, force here you need don't

– Heiner
Jun 18 '18 at 8:26













36





+50









An excerpt from an apple technical note (Thanks to matthias-bauch)




Xcode includes all your command-line tools. If it is installed on your
system, remove it to uninstall your tools.



If your tools were downloaded separately from Xcode, then they are
located at /Library/Developer/CommandLineTools on your system. Delete
the CommandLineTools
folder to uninstall them.




you could easily delete using terminal:



Here is an article that explains how to remove the command line tools but do it at your own risk.Try this only if any of the above doesn't work.






share|improve this answer





















  • 2





    This path doesn't exist on my machine...

    – Sam Odio
    May 2 '15 at 6:11











  • Which OS are you using ? Try this on terminal cd /Library/Developer/CommandLineTools If you get No such file or directory then the path is not there for sure.

    – Durai Amuthan.H
    May 2 '15 at 17:25











  • "technical note" link doesn't work for me

    – JBallin
    Feb 6 '18 at 19:59











  • I am able to access it. I think the link is blocked by firewall or something

    – Durai Amuthan.H
    Feb 6 '18 at 20:30











  • What's more important, removing this directory doesn't let xcode-select --install work

    – Jason
    Apr 24 '18 at 18:35


















36





+50









An excerpt from an apple technical note (Thanks to matthias-bauch)




Xcode includes all your command-line tools. If it is installed on your
system, remove it to uninstall your tools.



If your tools were downloaded separately from Xcode, then they are
located at /Library/Developer/CommandLineTools on your system. Delete
the CommandLineTools
folder to uninstall them.




you could easily delete using terminal:



Here is an article that explains how to remove the command line tools but do it at your own risk.Try this only if any of the above doesn't work.






share|improve this answer





















  • 2





    This path doesn't exist on my machine...

    – Sam Odio
    May 2 '15 at 6:11











  • Which OS are you using ? Try this on terminal cd /Library/Developer/CommandLineTools If you get No such file or directory then the path is not there for sure.

    – Durai Amuthan.H
    May 2 '15 at 17:25











  • "technical note" link doesn't work for me

    – JBallin
    Feb 6 '18 at 19:59











  • I am able to access it. I think the link is blocked by firewall or something

    – Durai Amuthan.H
    Feb 6 '18 at 20:30











  • What's more important, removing this directory doesn't let xcode-select --install work

    – Jason
    Apr 24 '18 at 18:35
















36





+50







36





+50



36




+50





An excerpt from an apple technical note (Thanks to matthias-bauch)




Xcode includes all your command-line tools. If it is installed on your
system, remove it to uninstall your tools.



If your tools were downloaded separately from Xcode, then they are
located at /Library/Developer/CommandLineTools on your system. Delete
the CommandLineTools
folder to uninstall them.




you could easily delete using terminal:



Here is an article that explains how to remove the command line tools but do it at your own risk.Try this only if any of the above doesn't work.






share|improve this answer















An excerpt from an apple technical note (Thanks to matthias-bauch)




Xcode includes all your command-line tools. If it is installed on your
system, remove it to uninstall your tools.



If your tools were downloaded separately from Xcode, then they are
located at /Library/Developer/CommandLineTools on your system. Delete
the CommandLineTools
folder to uninstall them.




you could easily delete using terminal:



Here is an article that explains how to remove the command line tools but do it at your own risk.Try this only if any of the above doesn't work.







share|improve this answer














share|improve this answer



share|improve this answer








edited May 23 '17 at 11:47









Community

11




11










answered Apr 29 '15 at 16:19









Durai Amuthan.HDurai Amuthan.H

22.6k4118200




22.6k4118200








  • 2





    This path doesn't exist on my machine...

    – Sam Odio
    May 2 '15 at 6:11











  • Which OS are you using ? Try this on terminal cd /Library/Developer/CommandLineTools If you get No such file or directory then the path is not there for sure.

    – Durai Amuthan.H
    May 2 '15 at 17:25











  • "technical note" link doesn't work for me

    – JBallin
    Feb 6 '18 at 19:59











  • I am able to access it. I think the link is blocked by firewall or something

    – Durai Amuthan.H
    Feb 6 '18 at 20:30











  • What's more important, removing this directory doesn't let xcode-select --install work

    – Jason
    Apr 24 '18 at 18:35
















  • 2





    This path doesn't exist on my machine...

    – Sam Odio
    May 2 '15 at 6:11











  • Which OS are you using ? Try this on terminal cd /Library/Developer/CommandLineTools If you get No such file or directory then the path is not there for sure.

    – Durai Amuthan.H
    May 2 '15 at 17:25











  • "technical note" link doesn't work for me

    – JBallin
    Feb 6 '18 at 19:59











  • I am able to access it. I think the link is blocked by firewall or something

    – Durai Amuthan.H
    Feb 6 '18 at 20:30











  • What's more important, removing this directory doesn't let xcode-select --install work

    – Jason
    Apr 24 '18 at 18:35










2




2





This path doesn't exist on my machine...

– Sam Odio
May 2 '15 at 6:11





This path doesn't exist on my machine...

– Sam Odio
May 2 '15 at 6:11













Which OS are you using ? Try this on terminal cd /Library/Developer/CommandLineTools If you get No such file or directory then the path is not there for sure.

– Durai Amuthan.H
May 2 '15 at 17:25





Which OS are you using ? Try this on terminal cd /Library/Developer/CommandLineTools If you get No such file or directory then the path is not there for sure.

– Durai Amuthan.H
May 2 '15 at 17:25













"technical note" link doesn't work for me

– JBallin
Feb 6 '18 at 19:59





"technical note" link doesn't work for me

– JBallin
Feb 6 '18 at 19:59













I am able to access it. I think the link is blocked by firewall or something

– Durai Amuthan.H
Feb 6 '18 at 20:30





I am able to access it. I think the link is blocked by firewall or something

– Durai Amuthan.H
Feb 6 '18 at 20:30













What's more important, removing this directory doesn't let xcode-select --install work

– Jason
Apr 24 '18 at 18:35







What's more important, removing this directory doesn't let xcode-select --install work

– Jason
Apr 24 '18 at 18:35













2














You can simply delete this folder




/Library/Developer/CommandLineTools




Please note: This is the root /Library, not user's ~/Library).






share|improve this answer


























  • No - that doesn't do it... removed the directory... command still works.

    – sea26.2
    Jun 20 '17 at 21:04











  • Seems your command line tools are not installed separately, and it is installed through Xcode.

    – MrDEV
    Jun 27 '17 at 9:36


















2














You can simply delete this folder




/Library/Developer/CommandLineTools




Please note: This is the root /Library, not user's ~/Library).






share|improve this answer


























  • No - that doesn't do it... removed the directory... command still works.

    – sea26.2
    Jun 20 '17 at 21:04











  • Seems your command line tools are not installed separately, and it is installed through Xcode.

    – MrDEV
    Jun 27 '17 at 9:36
















2












2








2







You can simply delete this folder




/Library/Developer/CommandLineTools




Please note: This is the root /Library, not user's ~/Library).






share|improve this answer















You can simply delete this folder




/Library/Developer/CommandLineTools




Please note: This is the root /Library, not user's ~/Library).







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 20 at 6:49

























answered Jan 16 '17 at 14:11









MrDEVMrDEV

659513




659513













  • No - that doesn't do it... removed the directory... command still works.

    – sea26.2
    Jun 20 '17 at 21:04











  • Seems your command line tools are not installed separately, and it is installed through Xcode.

    – MrDEV
    Jun 27 '17 at 9:36





















  • No - that doesn't do it... removed the directory... command still works.

    – sea26.2
    Jun 20 '17 at 21:04











  • Seems your command line tools are not installed separately, and it is installed through Xcode.

    – MrDEV
    Jun 27 '17 at 9:36



















No - that doesn't do it... removed the directory... command still works.

– sea26.2
Jun 20 '17 at 21:04





No - that doesn't do it... removed the directory... command still works.

– sea26.2
Jun 20 '17 at 21:04













Seems your command line tools are not installed separately, and it is installed through Xcode.

– MrDEV
Jun 27 '17 at 9:36







Seems your command line tools are not installed separately, and it is installed through Xcode.

– MrDEV
Jun 27 '17 at 9:36




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f27438457%2fxcode-6-1-how-to-uninstall-command-line-tools%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Liquibase includeAll doesn't find base path

How to use setInterval in EJS file?

Petrus Granier-Deferre