How can I install Linux Command line tool

Good day,


I just received a new MacBook Pro 14 with the M1 ship.


I need to install the Linux Command Line tools but I can find a suitable way to do that.

Is mandatory to install Xcode? Can I install Linux Command Line tool without Xcode?


Cheers

Pierre

Posted on Jun 16, 2022 6:34 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 16, 2022 7:49 AM

It sounds like you want the compile, linker, debugger, make tools. They are NOT LINUX TOOLS. Nothing about macOS is Linux. macOS evolved from the Carnage Mellon MACH kernel and the OpenBSD kernel APIs and many of the utilities. Yes there are some open source (non-GPLv3) software packages, but the core of macOS has no relation to Linux.


To get the Command Line Tools use this command


xcode-select --install


https://www.freecodecamp.org/news/install-xcode-command-line-tools/

Similar questions

5 replies
Question marked as Top-ranking reply

Jun 16, 2022 7:49 AM in response to pierrot-la-lune

It sounds like you want the compile, linker, debugger, make tools. They are NOT LINUX TOOLS. Nothing about macOS is Linux. macOS evolved from the Carnage Mellon MACH kernel and the OpenBSD kernel APIs and many of the utilities. Yes there are some open source (non-GPLv3) software packages, but the core of macOS has no relation to Linux.


To get the Command Line Tools use this command


xcode-select --install


https://www.freecodecamp.org/news/install-xcode-command-line-tools/

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.

How can I install Linux Command line tool

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