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

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.

主站蜘蛛池模板: 湾仔区| 开鲁县| 密云县| 临沭县| 冀州市| 漯河市| 左权县| 惠州市| 桃园县| 六安市| 嘉鱼县| 陵川县| 龙口市| 开阳县| 五家渠市| 汤原县| 黄石市| 石首市| 宁都县| 蚌埠市| 高安市| 石狮市| 宝清县| 瓦房店市| 历史| 德钦县| 平远县| 江源县| 尼玛县| 怀集县| 景洪市| 镇平县| 临夏县| 正宁县| 宁强县| 巴里| 阜新| 阳朔县| 崇仁县| 会理县| 崇礼县|