- Merge the following from the English version:

r44669 -> r44763	head/ja_JP.eucJP/books/handbook/ports/chapter.xml
This commit is contained in:
Ryusuke SUZUKI 2015-01-06 08:55:23 +00:00
parent d2095c9c00
commit 6106b3b42a
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=46144

View file

@ -3,7 +3,7 @@
The FreeBSD Documentation Project
The FreeBSD Japanese Documentation Project
Original revision: r44669
Original revision: r44763
$FreeBSD$
-->
<chapter xmlns="http://docbook.org/ns/docbook"
@ -206,7 +206,11 @@
で確認するか、<package>ports-mgmt/portaudit</package>
をインストールしてください。インストールしたら、
<command>portaudit -F -a</command> と入力して、
インストールされているアプリケーションに既知の脆弱性がないことを確認してください。</para>
インストールされているアプリケーションに既知の脆弱性がないことを確認してください。
<application>pkg</application> を使用している環境では、
脆弱性の検査機能は組み込まれています。<command>pkg audit
-F</command> を実行して、
脆弱性のある package のレポートを入手してください。</para>
</warning>
<para>この章では、packages と ports を用いた &os; 上での
@ -250,6 +254,62 @@
&os; サイトで調べて下さい。</para>
</listitem>
<listitem>
<indexterm>
<primary>pkg</primary>
<secondary>search</secondary>
</indexterm>
<para xml:id="pkg-search">バイナリ package
リポジトリでアプリケーションを探すには、
以下のように実行してください。</para>
<screen>&prompt.root; <userinput>pkg search <replaceable>subversion</replaceable></userinput>
git-subversion-<replaceable>1.9.2</replaceable>
java-subversion-<replaceable>1.8.8_2</replaceable>
p5-subversion-<replaceable>1.8.8_2</replaceable>
py27-hgsubversion-<replaceable>1.6</replaceable>
py27-subversion-<replaceable>1.8.8_2</replaceable>
ruby-subversion-<replaceable>1.8.8_2</replaceable>
subversion-<replaceable>1.8.8_2</replaceable>
subversion-book-<replaceable>4515</replaceable>
subversion-static-<replaceable>1.8.8_2</replaceable>
subversion16-<replaceable>1.6.23_4</replaceable>
subversion17-<replaceable>1.7.16_2</replaceable></screen>
<para>package 名にはバージョン番号が含まれます。
また、python ベースの ports では、
共に構築された python のバージョン番号も含まれます。
ports によっては、複数のバージョンを利用できるものがあります。
<application>subversion</application> では、
複数のバージョンを利用できますが、
異なるコンパイルオプションで構築されたものも利用できます。
インストールする package を指定する際には、
アプリケーションに、port ツリーのパスである、
port のオリジンを指定すると良いでしょう。
<command>pkg search</command><option>-o</option>
オプションを付けて、実行してください。
各 package のオリジンの一覧が表示されます。</para>
<screen>&prompt.root; <userinput>pkg search -o <replaceable>subversion</replaceable></userinput>
devel/git-subversion
java/java-subversion
devel/p5-subversion
devel/py-hgsubversion
devel/py-subversion
devel/ruby-subversion
devel/subversion16
devel/subversion17
devel/subversion
devel/subversion-book
devel/subversion-static</screen>
<para><command>pkg search</command> は、
リポジトリデータベースの説明やその他のフィールドにおいて、
シェルグロブ、正規表現、完全一致にも対応しています。
詳細については、&man.pkg-search.8; をご覧ください。</para>
</listitem>
<listitem>
<para>Ports Collection がすでにインストールされていれば、
ports ツリーのローカルバージョンを調べることができます。