在 Mac OS X 上以 Homebrew 進行軟體包管理

102/12/26 原來的安裝好像已經失效了!所以改一下安裝方式:

參考:http://brew.sh/index_zh-tw.html

http://brew.sh/index.html

  • Install Homebrew

    ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

    Paste that at a Terminal prompt.

    The script explains what it will do and then pauses before it does it. There are more installation optionshere (needed on 10.5).

—————————–

Homebrew: 新一代 OSX 套件管理工具 by ihower

https://github.com/mxcl/homebrew

安裝
https://github.com/mxcl/homebrew/blob/master/README.md

Quick Install to /usr/local

This script will prompt for confirmation before it does anything:
ruby -e “$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)”

https://github.com/mxcl/homebrew/wiki/Installation

Uninstallation

cd `brew --prefix`
rm -rf Cellar
brew prune
rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew
rm -rf ~/Library/Caches/Homebrew

It is worth noting that if you installed somewhere like /usr/local then these uninstallation steps will leave that directory exactly like it was before Homebrew was installed. Unless you manually (ie. without brew) added new stuff there, in which case those things will still be there too.

=========馬上演練======

$ brew install git   (打了這個指令後,就全自動了!)

==> Downloading http://kernel.org/pub/software/scm/git/git-1.7.3.2.tar.bz2

###################################### 100.0%

==> make prefix=/usr/local/Cellar/git/1.7.3.2 install

==> Downloading http://kernel.org/pub/software/scm/git/git-manpages-1.7.3.2.tar.

#################################### 100.0%

==> Downloading http://kernel.org/pub/software/scm/git/git-htmldocs-1.7.3.2.tar.

###################################### 100.0%

/usr/local/Cellar/git/1.7.3.2: 947 files, 18M, built in 45 seconds

$ brew info git

git 1.7.3.2

http://git-scm.com

/usr/local/Cellar/git/1.7.3.2 (947 files, 18M)

http://github.com/mxcl/homebrew/commits/master/Library/Formula/git.rb

Share and Enjoy:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • MySpace
  • Plurk
  • RSS
  • Google Buzz
  • Live
本篇發表於 Mac。將永久鏈結加入書籤。

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *