![]() ![]() Start using these command and your life will become so much easier. NOTE: Here name-of-the-package will be the name of the utility you want to search for. Using Homebrew you can easily search, download, updat and remove open-source utilities, libraries etc that you need for your local development. Using Homebrew to Install Software Packages(Open-source Utilities) To activate the changes made to the bash_profile file, type: ![]() Then you can exit the nano editor by pressing the control key and the letter X together. To save the file, once you have added the above line to it, press the control key and the letter O, then press the Enter key. Open or create the ~/.bash_profile file using nano editor: You must be wondering, why we need to do this? Well, to ensure that the Homebrew installations(software packages installed using Homebrew) are given priority over the default Mac OS X tools selected by the OS. Once the installation process is done, we will now put the Homebrew directory at the top of the environment variable PATH in our system. This will inform you about the status of Homebrew and will ask you to update a few packages, if required. Run the following command to see if everything is installed fine. Once this command executes without error(if you get any error, post in comment and we will help you out) Running this script requires password, so when it asks for the password, provide your user passowrd and press "Enter" To install Homebrew, run the following command, The above command will install command line tools in your computer, or if you already have that installed, it will show the message "error: command line tools are already installed". To install Command Line Tools, open your terminal(Press Command Spacebar and type in "Terminal" to open the Terminal App) and run the following command. If you have XCode installed on your local environment then you do not need to do anything and can directly jump to the next step. To install and run Homebrew on macOS we need to install Command Line Tools on our mac. Homebrew installs the packages inside this directory, or at times, it installs the packages in their own directory and then symlinks(create soft link) their files into /usr/local/ directoryīelwo we have a step by step guide to install Homebrew on your computer/laptop Whenever we install a new software package or tool, it should be installed in the /usr/local directory, as this is the directory where user specific software packages are installed. Using Homebrew Cask, which is an extensuion of Homebrew, you can even install Binary apps(DMG files). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |