homebrew 是 Mac 下一款方便的第三方软件包安装工具,对于安装最新的第三方软件包它是很方便的,但是如果要安装一个第三方软件包的过去版本,就稍显麻烦,它不能够直接在安装时提供版本号。
以 mongodb 为例,介绍 homebrew 安装第三方软件包的过去版本。
homebrew 的版本为 0.9.3
step1.
查看 homebrew 支持第三方软件包的所有版本:
bogon:Formula teamx$ brew versions mongodb 2.2.2-x86_64 git checkout fe5bc4d /usr/local/Library/Formula/mongodb.rb 2.2.1-x86_64 git checkout 5825f62 /usr/local/Library/Formula/mongodb.rb 2.2.0-x86_64 git checkout 9348b10 /usr/local/Library/Formula/mongodb.rb 2.0.7-x86_64 git checkout 6434ebb /usr/local/Library/Formula/mongodb.rb 2.0.6-x86_64 git checkout 2553479 /usr/local/Library/Formula/mongodb.rb 2.0.5-x86_64 git checkout c6d3538 /usr/local/Library/Formula/mongodb.rb 2.0.4-x86_64 git checkout 3231798 /usr/local/Library/Formula/mongodb.rb 2.0.3-x86_64 git checkout aaa3b21 /usr/local/Library/Formula/mongodb.rb 2.0.2-x86_64 git checkout dfcc838 /usr/local/Library/Formula/mongodb.rb 2.0.1-x86_64 git checkout e50a75a /usr/local/Library/Formula/mongodb.rb 2.0.0-x86_64 git checkout 72cb073 /usr/local/Library/Formula/mongodb.rb 1.8.3-x86_64 git checkout a11443c /usr/local/Library/Formula/mongodb.rb 1.8.2-x86_64 git checkout dae14ec /usr/local/Library/Formula/mongodb.rb 1.8.1-x86_64 git checkout 1907dd5 /usr/local/Library/Formula/mongodb.rb 1.8.0-x86_64 git checkout 009fbc3 /usr/local/Library/Formula/mongodb.rb 1.6.5-x86_64 git checkout 6df37d0 /usr/local/Library/Formula/mongodb.rb 1.6.4-x86_64 git checkout 2821910 /usr/local/Library/Formula/mongodb.rb 1.6.3-x86_64 git checkout 319183d /usr/local/Library/Formula/mongodb.rb 1.6.2-x86_64 git checkout 26b8549 /usr/local/Library/Formula/mongodb.rb 1.6.1-x86_64 git checkout ab089ff /usr/local/Library/Formula/mongodb.rb 1.6.0-x86_64 git checkout ed51a5b /usr/local/Library/Formula/mongodb.rb # ^^ 版本号 ^^ 对应的 git commit # 可以看到 homebrew 使用 git 记录第三方软件包的版本信息
step2.
bogon:Formula teamx$ cd /usr/local/Library/Formula/ # 我要装的是mongodb-2.2.2,它对应的 git commit 是 fe5bc4d bogon:Formula teamx$ git checkout fe5bc4d mongodb.rb
step3.
bogon:Formula teamx$ brew install mongodb bogon:Formula teamx$ git checkout master mongodb.rb # 安装完毕,切换回最新版本
通过以上步骤就完成了第三方软件包的特定版本安装,其他软件包可以使用类似的方法安装。
参考链接:
http://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula
相关推荐
您可以在找到它安装了mongodb 您可以在终端中使用以下命令安装mongodb: brew install mongodb档案文件homebrew.mxcl.mongodb#.plist mongod#.conf创建的目录/ usr / local / var / log / mongodb#/ / usr / ...
本文主要介绍的是关于在mac中安装卸载mongoDB数据库的方法,更多关于mongoDB的使用大家可以参考这篇文章://www.jb51.net/article/79416.htm (一) mongodb 安装 mongodb 数据库的安装有两种方法。 一种是使用命令行...
mac 系统常用的软件安装工具就是 homebrew 个人认为通过brew安装比较简单,下面介绍下如何安装 安装 mongodb wenxuezhangdeMacBook-Pro:~ wenxuezhang$ brew install mongodb 此图说明已经安装成功,安装的目录就是 /...
在 Mac 上运行此应用程序的步骤: 安装 MongoDB 安装自制软件使用自制软件安装 Hadoop。 使用此命令行:$ brew install hadoop。 此链接: : 有在 Mac 上设置 Hadoop 的详细说明。 使用 homebrew 安装 Maven。 使用...
根据 homebrew-brew 官方的解释得知,MongoDB 不再是开源的了,并且已经从 Homebrew中移除 #43770 正是由于 MongoDB 的商业化不太理想,所以它选择了闭源。所以,在它闭源之前的那些 brew 安装方法都会报错了。网上...
如果您的系统上还没有“真实”安装 MongoDB,请使用HomeBrew安装它: brew updatebrew install mongodb如果您不使用 Mac... Linux: : 视窗? 哎哟... 使用 textSearchEnabled=true 启动 MongoDB 在终端/控
ruby -e " $( curl -fsSL https://raw.github.com/mxcl/homebrew/go ) "安装 Virtualbox 使用安装 VirtualBox。 brew updatebrew tap phinze/homebrew-caskbrew install brew-caskbrew cask install virtualbox安装...
(Mac OSx)安装Homebrew 安装节点 安装MongoDB 安装Git 安装Ruby 安装指南针 s安装SASS ###### Note如果在Linux上安装node,它将作为nodejs安装,因此,如果要将其更改为node,只需将其符号链接即可。 sudo ln -s...
通常我们使用稳定的 LTS 版本的 Node.js 即可,但有的情况下我们又想尝试一下新的特性,我们总不能来回安装不同版本的 Node.js 吧,这个时候我们就需要 n 或者 nvm 了。n 和 nvm 是两个常用的 Node.js 版本管理工具...
在Mac OSX上,使用homebrew安装所需的库: $ brew install mongo-c 在Linux上,您需要从软件包管理器或从源代码安装libmongoc-1.1-0和libbson-1.1-0 : wget ...
我假设您使用的是Mac,并且已安装Homebrew 。 :check_mark: brew install mongodb MongoDB安装后配置 请遵循自制程序中的说明: :check_mark: brew info mongodb 可能类似于: # To have launchd start mongodb...
安装这些库: npm updatenpm installbower update开始蒙戈在Mac上,使用通过Homebrew安装的MongoDB: mongod --config /usr/local/etc/mongod.conf配置应用程序->数据库连接该应用程序使用环境变量来配置与依赖项...
安装 MongoDB(使用 Homebrew ): 试试 安装 RVM(如果需要): 你可以去 安装宝石: 转到克隆的文件夹 如果需要,安装 Rubinius(它会告诉你该怎么做) 执行bundle install来安装所有的 gems 运行应用程序: ...
首先,使用安装和generator-deno-starter-kit(我们假设您已经预装了 )。 npm install -g yo npm install -g generator-deno-starter-kit 然后生成您的新项目: yo deno-starter-kit 其次,安装 Homebrew(Mac...
主要这里服务端涉及mongoDB数据库,简单说一下,因为我是Mac,用的homebrew装的mongo,强烈推荐homebrew,安利一波 ,之后mongod启动一下,然后到server文件夹下,node server-koa.js启动服务端就ok了。记得先npm i 把...
在 Mac 上使用 Homebrew 运行 Place Pulse: 如果 Homebrew 已经安装,您可以跳过数据库设置的第 1 步。 如果您不想使用 Homebrew,请使用其网站上的说明安装 MongoDB,然后从第 2 步中选择。 数据库设置 Open ...
简单图书管理API 这是一个使用以下示例的CRUD图书管理API示例: Mongodb 节点JS ... 如果您在Mac上并且使用Homebrew软件包管理器,则安装与brew install mongodb一样简单。 安装 $ git clone http
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist 你可以这样做: ezservices start mongodb 和: > ezservices ls ~/Library/LaunchAgents/homebrew-php.josegonzalez.ph
该项目是典型的 Web应用程序的应用程序框架。 入门 要开始使用,您可以简单地克隆存储库: ... 如果您在Mac上并且使用Homebrew软件包管理器,则安装与brew install mongodb一样简单。 阿皮多克 要安装,请运行npm in