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

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.

主站蜘蛛池模板: 肥东县| 都昌县| 高安市| 柳江县| 仁寿县| 芦溪县| 鄂伦春自治旗| 乐平市| 凯里市| 信阳市| 莫力| 河源市| 依兰县| 安宁市| 阳江市| 墨竹工卡县| 灵石县| 师宗县| 柯坪县| 无锡市| 桐城市| 麻城市| 韶山市| 德阳市| 靖边县| 英超| 高邮市| 普兰店市| 柳州市| 濉溪县| 曲阳县| 武清区| 宣威市| 沭阳县| 锡林郭勒盟| 长丰县| 东乡| 吉木乃县| 宝兴县| 永兴县| 壶关县|