Homebrew macOS缺失包管理器

  Homebrew,是一款macOS系统上的安装包管理器,主要用来安装系统未预安装的包。

  一、安装方法:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  二、使用方法:

$ brew install wget

  三、说明:

  (一)Homebrew 会将软件包安装到独立目录,并将其文件软链接至 /usr/local 。

$ cd /usr/local
$ find Cellar
Cellar/wget/1.16.1
Cellar/wget/1.16.1/bin/wget
Cellar/wget/1.16.1/share/man/man1/wget.1

$ ls -l bin
bin/wget -> ../Cellar/wget/1.16.1/bin/wget

  (二)Homebrew 不会将文件安装到它本身目录之外,所以您可将 Homebrew 安装到任意位置。

 

posted @ 2017-11-29 23:18  xuoyou  阅读(318)  评论(0编辑  收藏  举报