6

Homebrew 的包管理方式

 3 years ago
source link: https://mednoter.com/homebrew.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Homebrew 的包管理方式

Macbook Air 用了快三年了,今天光荣退役了。给新的 Macbook Pro 搭建开发环境,花了一晚上,还没弄好,真是相当的浪费时间(不过也没办法)。

在搭环境时,顺便梳理了 Homebrew 管理包的方式。

本地保存了一份大而全的列表

不像 ubutun 的 wget,安装时去服务器下载相应的包就可以了。Homebrew 要在本地保存一份包的列表,每次更新包的时候,要 merge 远程的列表。

管理包的方式

/usr/local/ 下几个文件夹的用途:

  1. cellar

    所有安装过的包都在这个文件夹中。

  2. 当前正在使用的版本。

    假如你使用了 Homebrew MySQL 有两个版本 5.6.21 / 5.5.10,opt 里是一个目录的软链接,指向你正在使用的 redis 版本。

  3. 都是一些可执行文件,便于快速启动某些包。

  4. 存放 mysql、redis、mongodb、elasticsearch 的数据库文件。

  5. 各种配置文件,比如 redis、nginx。

吕小荣
23 November 2014

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK