MacPorts の使い方

MacPortsの続き

引き続きこちらを参照。
http://d.hatena.ne.jp/hakobe932/20061208/1165646618

ソフトウェア一覧の更新
$ sudo port sync
ソフトウェアの検索
$ port search zsh

こんな感じに出力されました(2009/07/07)

ctags @5.7 (devel)
    Reimplementation of ctags(1)

lesspipe @1.53 (textproc)
    lesspipe is an input filter for the pager less.

zsh @4.2.7 (shells)
    Zsh is a UNIX command interpreter (shell)

zsh-devel @4.3.10 (shells)
    Zsh is a UNIX command interpreter (shell)

Found 4 ports.
追加出来る機能を参照

インストールの前にチェックしておくと良いこと。
各ソフトをインストールする際の追加オブションの選択。

$ port variants zsh

zsh の場合はこんなふうにでました(2009/07/07)。

zsh has the variants:
        darwin_8: Platform variant, do not select manually
        mp_completion: Include automatic completion of MacPorts commands
        dp_completion: Obsolete, synonymous with mp_completion
        doc: Install documentation
        universal: Build for multiple architectures
インストール

インストールは以下の通り

$ sudo port install zsh


機能を追加する場合は以下の通り

$ sudo port install zsh +mp_completion +doc
アップグレード
$ sudo port upgrade zsh

尚、アップグレード可能なソフトは以下の様に調べる

$ port outdated
アンインストール

そのまま

$ sudo port uninstall zsh
非アクティブ化と復旧

MacPorts ではアンインストールではなくインストールされた状態で使用出来ない様にする
「非アクティブ化」も使用可能らしい

非アクティブ化

$ sudo port deactivate zsh

アクティブ化

$ sudo port activate zsh