**以前のリビジョンの文書です**
ports
FreeBSDのportsはaptとかyumとは少し趣が違って、ソースを落として自分でコンパイルする仕組み(だといいなぁ)。
FreeBSDを導入時によく使うのでメモ程度に。
portsツリー
portsシステムにおけるソフトウェアの一覧。
日本語環境でハンガリー語とかベトナム語を使う人は少ないので、
そういった部分は最初に削っておきます。
cat "REFUSE arabic chinese french german hebrew hungarian" >> /etc/portsnap.conf cat "REFUSE korean polish portuguese russian ukrainian vietnamese" >> /etc/portsnap.conf
初回はportsツリーが無いので一から作成。
portsnap fetch extract </code 2回目以降は差分だけアップデート <code> portsnap fetch update
普段の使い方
- 目的のportsを探す。
- ディレクトリ移動
- make install clean
例:openssh-portable
# whereis openssh-portable openssh-portable: /usr/ports/security/openssh-portable # cd /usr/ports/security/openssh-portable # make install clean
基本的にディレクトリを探しているだけなので、Linuxでは確かこんな名前だったなぁ。
とか言いながら探した後にwhereisしてもいいと(俺は)思う。
この辺はapt-cacheを使うのと似てる。(原始的という意見もある。)
例:squidの場合
# ls /usr/ports/* | grep squid squid3.1 squidclamav lightsquid squid squid30 squid31 squid_radius_auth squidguard squidpurge squidstats squidview # whereis squid31 squid31: /usr/ports/www/squid31 # cd /usr/ports/www/squid31 # make install clean