官术网_书友最值得收藏!

Time for action — installing Homebrew

We are going to use Terminal to download Homebrew and install it onto our computer.

  1. Open Terminal.
  2. Type the following commands into Terminal, pressing Enter after each line:
    sudo mkdir -p /usr/local sudo chown -R $USER /usr/local curl -Lf http://github.com/mxcl/homebrew/tarball/master | tar xz -- strip 1 -C/usr/local 
    
  3. Terminal will respond with a progress bar and show you how the installation process went. When the installation is complete, you will receive a success message, and you will have control of the Terminal again.

What just happened?

We added the directory /usr/local, which is where Homebrew will save all of its files. Then we made sure that the folder was owned by us (the current user). We then installed Homebrew using a cURL statement to grab the repository from Github (I'll cover cURL later in this chapter; we are going to use it quite a bit). After grabbing the repository, it was unzipped, using the command line function tar, and placed into the /usr/local folder.

主站蜘蛛池模板: 广州市| 齐齐哈尔市| 柳河县| 普安县| 乐亭县| 河北区| 论坛| 宁河县| 峨眉山市| 台山市| 哈尔滨市| 区。| 那曲县| 彭州市| 醴陵市| 旌德县| 新化县| 根河市| 沐川县| 延庆县| 定西市| 扎兰屯市| 巫山县| 永登县| 奉化市| 五华县| 榆林市| 阜城县| 忻城县| 于田县| 元江| 广汉市| 金川县| 兴山县| 德安县| 漳州市| 阳信县| 兰考县| 漯河市| 团风县| 全椒县|