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

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.

主站蜘蛛池模板: 鱼台县| 友谊县| 彭州市| 英山县| 宁南县| 桑日县| 仲巴县| 梁平县| 德昌县| 德安县| 涟水县| 新民市| 阜城县| 宜宾县| 溆浦县| 祁阳县| 札达县| 郯城县| 乐平市| 娱乐| 中西区| 剑河县| 吉林市| 西城区| 广水市| 祁阳县| 隆安县| 翼城县| 肥乡县| 浦城县| 天柱县| 曲水县| 饶阳县| 镇赉县| 嘉善县| 洛宁县| 泸州市| 合阳县| 梅河口市| 株洲县| 黄大仙区|