Merge the following from the English version
1.274 -> 1.275 handbook/ports/chapter.sgml Submitted by: Ryusuke Suzuki <ryusuke _at_ jp dot FreeBSD dot org> Reference: [doc-jp-work 1932]
This commit is contained in:
parent
92e112b83d
commit
59aee8e595
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=34302
1 changed files with 91 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
The FreeBSD Documentation Project
|
||||
The FreeBSD Japanese Documentation Project
|
||||
|
||||
Original revision: 1.274
|
||||
Original revision: 1.275
|
||||
$FreeBSD$
|
||||
-->
|
||||
|
||||
|
@ -1368,6 +1368,96 @@ ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch</userinput></screen>
|
|||
|
||||
<para>詳細については &man.portmanager.1; を参照してください。</para>
|
||||
</sect3>
|
||||
|
||||
<sect3 id="portmaster">
|
||||
<title>Portmaster を用いた ports のアップグレード</title>
|
||||
|
||||
<indexterm>
|
||||
<primary>portmaster</primary>
|
||||
</indexterm>
|
||||
|
||||
<para>インストールした ports
|
||||
のアップグレードを行うためのもう一つのユーティリティが
|
||||
<application>Portmaster</application> です。
|
||||
<application>Portmaster</application> は、
|
||||
どの ports をアップグレードすべきかの判断を、
|
||||
(他の ports に依存せずに) <quote>base</quote> システムのツールと
|
||||
<filename class="directory">/var/db/pkg/</filename>
|
||||
の情報から行うよう設計されています。
|
||||
<filename role="package">ports-mgmt/portmaster</filename>
|
||||
から利用できます。</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>cd <filename role="directory">/usr/ports/ports-mgmt/portmaster</filename></userinput>
|
||||
&prompt.root; <userinput>make install clean</userinput></screen>
|
||||
|
||||
<para><application>Portmaster</application> は、ports を 4 つのカテゴリに分類します。</para>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>Root ports (他の port に依存しません。他の port からも依存されません。)</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Trunk ports (他の port に依存しませんが、他の port から依存されます。)</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Branch ports (他の port に依存し、他の port からも依存されます。)</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>Leaf ports (他の port に依存しますが、他の port からは依存されません。)</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<para><option>-L</option> オプションを使うと、
|
||||
インストールした ports やアップデート可能な port の一覧が表示されます。</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>portmaster -L</userinput>
|
||||
===>>> Root ports (No dependencies, not depended on)
|
||||
===>>> ispell-3.2.06_18
|
||||
===>>> screen-4.0.3
|
||||
===>>> New version available: screen-4.0.3_1
|
||||
===>>> tcpflow-0.21_1
|
||||
===>>> 7 root ports
|
||||
...
|
||||
===>>> Branch ports (Have dependencies, are depended on)
|
||||
===>>> apache-2.2.3
|
||||
===>>> New version available: apache-2.2.8
|
||||
...
|
||||
===>>> Leaf ports (Have dependencies, not depended on)
|
||||
===>>> automake-1.9.6_2
|
||||
===>>> bash-3.1.17
|
||||
===>>> New version available: bash-3.2.33
|
||||
...
|
||||
===>>> 32 leaf ports
|
||||
|
||||
===>>> 137 total installed ports
|
||||
===>>> 83 have new versions available
|
||||
</screen>
|
||||
|
||||
<para>以下のコマンドを使って、インストールされているすべての ports を簡単にアップデートできます。</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>portmaster -a</userinput></screen>
|
||||
|
||||
<note><para><application>Portmaster</application> のデフォルトの設定では、
|
||||
インストールされている port を削除する前にバックアップ用の package が作成されます。
|
||||
このバックアップは、新しいバージョンのインストールに成功すると削除されます。
|
||||
<option>-b</option> オプションを使うと、
|
||||
<application>Portmaster</application> はバックアップを自動的に削除しません。
|
||||
<option>-i</option> オプションを追加すると、
|
||||
<application>Portmaster</application> をインタラクティブモードで使用できます。
|
||||
このモードでは、各 port をアップグレードするかどうかの選択を対話的に行うことがでます。</para></note>
|
||||
|
||||
<para>アップグレードの過程でエラーに遭遇した場合には、
|
||||
<option>-f</option> オプションを使ってすべての ports のアップグレードや再構築をできます。</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>portmaster -af</userinput></screen>
|
||||
|
||||
<para><application>Portmaster</application> を使ってシステムに新しい ports
|
||||
をインストールしたり、新しい port のコンパイルやインストール前に依存するすべての port をアップグレードできます。</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>portmaster <replaceable>shells/bash</replaceable></userinput></screen>
|
||||
|
||||
<para>詳細については &man.portmaster.8; を参照してください。</para>
|
||||
</sect3>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="ports-disk-space">
|
||||
|
|
Loading…
Reference in a new issue