LoginSignup
7
15

More than 5 years have passed since last update.

macにhomebrew、macportsのどちらが入っているのか、確認してみた。

Last updated at Posted at 2014-04-07

まずはmacにgitが入っているか調べてみる

which git

結果
$ which git
/usr/bin/git

gitディレクトリが表示されたので、僕のmacにはgitが入っていることが確認された、ということ?

次にmacportsがあるのか調べる

which port

結果
$ which port
/opt/local/bin/port

portディレクトリが表示されたので、僕のmacにはmacportsが入っていることが確認された、ということ?

次にhomebrewがあるのか調べる

which brew

結果
反応なし
反応がないので、homebrewはインストールされていないっぽい。

先生に言わるがまま、このコマンドを打つ

port installed

結果
$ port installed
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
The following ports are currently installed:
mysql55 @5.5.33_0 (active)
mysql55-connector-cpp @1.1.1_0 (active)
mysql_select @0.1.2_0 (active)
proj @4.8.0_0 (active)
tcp_wrappers @20_2 (active)
zlib @1.2.8_0 (active)

ワーニングが出てるけどとりあえず放置。
portにインストールされてるものが一覧で出てるのか?

まとめ

僕のmacにはmacportsがインストールされていた!!

補足

whichは、cdとかlsとかと同じターミナルコマンド。gitコマンドとは違う。
http://bowz.info/155

7
15
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
7
15