LoginSignup
73
86

More than 5 years have passed since last update.

MacPortsのインストールと設定メモメモ

Last updated at Posted at 2013-10-15

MacPortsはOS Xのパッケージ管理ツールっていうんですかね。
最近はHomebrewの記事をよく見かけますが、まずはこちらを試してみます。

参考にさせていただいたサイト

MacPortsの基本的な使い方とコマンド

インストール

  1. Xcodeを入れておきます。
    https://developer.apple.com/jp/technologies/tools/

  2. MacPortsのdmgをダウンロードしてインストールします。
    http://www.macports.org/

  3. PATHの設定なんかも自動でやってくれるみたいです。
    .bash_profileを反映させて、完了です。簡単!

$ source ~/.bash_profile

使用方法

ほい、自身の更新確認とリスト更新。

$ sudo port selfupdate
Password:
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.2.0 installed,
MacPorts base version 2.2.0 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated

パッケージ検索。

port search <キーワード>

インストール。

sudo port install <パッケージ名>

アンインストール。

sudo port uninstall <パッケージ名>

で、インストール時には追加可能なオプション(variants)を指定可能です。
オプションの表示は以下。

port variants <パッケージ名>

インストールするときには、以下のように指定します。

sudo port install <パッケージ名> +オプション +オプション
73
86
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
73
86