Using Portsnap to Update FreeBSD Ports Tree Collection FreeBSDのportsツリーを更新するコレクションを使用してPortsnap

Portsnap is a alternative system for securely distributing and updating the FreeBSD ports tree, which is easier to use than CVSup. Portsnap安全に配布すると、 CVSupを使用するよりも簡単には、 FreeBSDのportsツリーを更新するための代替システムです。 Portsnap was first included in FreeBSD 6.0. Portsnap最初のFreeBSD 6.0に含まれていた。 Like CVSup, Portsnap uses a pull model of updating: The packaged and signed ports trees are placed on a web server which waits passively for clients to request files by either run portsnap manually by users or set up a cron job to download updates automatically on a regular basis. CVSupと同様に、更新Portsnapプルモデルを使用します:このパッケージとポートの木々は、受動クライアントのいずれかを実行portsnapでユーザーがファイルを要求したり、手動でダウンロードしてアップデートを自動的には、上のcronジョブを設定待機は、 Webサーバー上に置かれている署名定期的。

On older FreeBSD systems, Portsnap is not automatically included, but it can be installed from sysutils/portsnap port by using command:古いFreeBSDのシステムでは、 Portsnapは自動的に含まれていませんがsysutilsからインストールすることができます/ portsnapポートコマンドを使用して:

# pkg_add -r portsnap # pkg_add - rをportsnap

Portsnap first fetch and update compresses snapshots of the FreeBSD ports tree stored in /var/db/portsnap/ (in /usr/local/portsnap/ if Portsnap is installed from FreeBSD Ports Collection) by default, and then only extract and update the uncompressed live ports tree at /usr/ports. Portsnap最初のフェッチとFreeBSDのportsツリーの更新に格納圧縮スナップショットを/ var /データベース/ portsnap / (では/ usr / local / portsnap / FreeBSDの場合Portsnapポートコレクションからインストールされている) 、デフォルトでは、とだけを抽出し、更新プログラムでは、非圧縮でのライブportsツリーを/ usr /ポート。

The behaviour and operation of Portsnap is controlled by configuration file portsnap.conf located in /etc (in /usr/local/etc/ if Portsnap is installed from the FreeBSD Ports Collection, and the configuration file is not automatically generated when freshly installed, instead you’ll found portsnap.conf.sample, just copy it as portsnap.conf).の挙動とPortsnapの動作設定ファイルportsnap.confでは/ usr / localの/ etcは/ etc (に位置によって制御される/ Portsnap場合は、 FreeBSDのportsコレクションからインストールされており、設定ファイルを自動的にばかりではなく、インストールされて生成されていないあなたは、これportsnap.confコピー) portsnap.conf.sampleが見つかりましたよ。 Generally, default configuration file will does its jobs.一般的に、デフォルトの設定ファイルはそのジョブではない。

At command line, the following options are supported, although most of the time it no need to be used, some can be configured in configuration file itself:ただし、それは使用されるために必要な時間の大半を、いくつかの設定でファイル自体に設定することができますコマンドラインでは、以下のオプションは、サポートされています:

-d workdir : Store working files (eg downloaded updates) in workdir. - dのworkdir : workdirに保管作業ファイル(ダウンロードした更新プログラムなど) (default: /var/db/portsnap, or as given in the configuration file) (既定値:を/ var /データベース/ portsnap 、またはとしては、設定ファイルで指定)

-f conffile : Read the configuration from from conffile. - fを設定ファイル:設定ファイルから設定をお読みください。 (default: /etc/portsnap.conf) (既定値:は/ etc / portsnap.conf )

-I : For the update command, update INDEX files, but not the rest of the ports tree. -私: updateコマンドは、ポートが、ツリーの残りページINDEXファイルは更新してください。

-k KEY : Expect a public key with given SHA256 hash. - k膜凡例:与えられたSHA256ハッシュと公開鍵が期待できます。 (default: read value from configuration file) (デフォルト:読むの構成ファイルから値)

-p portsdir : When extracting or updating an uncompressed snapshot, operate on the directory portsdir. - pのportsdir :スナップショットの更新時には非圧縮解凍や、ディレクトリportsdir上で動作します。 (default: /usr/ports/, or as given in the configuration file.) (デフォルト:は/ usr /ポート/ 、または構成ファイルで指定。 )

-s server : Fetch files from the specified server or server pool.サーバ秒:指定されたサーバーまたはサーバープールからファイルを取得。 (default: portsnap.FreeBSD.org , or as given in the configuration file.) (デフォルト: portsnap.FreeBSD.orgまたは構成ファイルで指定。 )

path : For extract command only, operate only on parts of the ports tree starting with path.パス: extractコマンドの場合のみ、専用のポートツリーのパスで始まるの一部を操作します。 (eg portsnap sysutils/port would extract sysutils/portsman, sysutils/portsnap, sysutils/portupgrade, etc.) (たとえばportsnap sysutils /ポート展開していましたsysutils / portsman 、 sysutils / portsnap 、 sysutils /等portupgrade )

The Synopsis for the Portsnap command line is:のPortsnapコマンドライン用のストーリーです:

portsnap [-I] [-d workdir] [-f conffile] [-k KEY] [-p portsdir] [-s server] command … [path] portsnap [ -私] [ - dのworkdir ] [ - fを設定ファイル] [ - kをキー] [ - pのportsdir ] [ -サーバ秒]コマンドを... [パス]

Usage of Portsnap Portsnapご利用方法

  1. Create an empty directory /usr/ports if it does not exists.れていない場合は存在するの/ usr /ポートが空のディレクトリを作成します。

    # mkdir /usr/ports #するmkdirを/ usr /ポート

  2. Fetch and download a compressed snapshot of the Ports Collection into /var/db/portsnap (or any other location specified in configuration file).フェッチとに、移植版のコレクションのスナップショットをダウンロードして圧縮を/ var /データベース/設定ファイルで指定された(または任意の他の場所portsnap ) 。 Internet connection needed at this stage) and update the existing snapshot.この段階でインターネット接続が必要)とは、既存のスナップショットを更新してください。

    # portsnap fetch # portsnap取得

  3. If you are running Portsnap for the first time (even if a ports tree has already been created or populated, to let Portsnap establishes a baseline from which portsnap can determine which parts of the ports tree need to be updated) or /usr/ports hasn’t been populated, extract the snapshot and replaces the existing files and directories, and establishes Portsnap-maintained ports tree into /usr/ports:初めての場合はPortsnapを実行している(ポートツリーの場合でも、既に作成されたか、人口、 Portsnapはportsnapのポートツリーのどの部分を特定できるように更新されているベースラインを確立する必要があります)または/ usr /ポートhasn ' 、スナップショットを抽出し、既存のファイルとディレクトリに代わる、人口Portsnapが確立されてtおよび-にportsツリーを維持を/ usr /ポート:

    # portsnap extract # portsnap抽出

    This step can be skipped if you’re only updating the ports tree.場合は、ポートツリーに更新されてこのステップはスキップすることができます。

  4. If you already have a populated /usr/ports and you are just updating, run the following command instead:既には/ usr /ポートの人口があるとするだけではなく、次のコマンドを実行してアップデートしています:

    # portsnap update # portsnap更新

Note: For updating of FreeBSD Ports Tree, step 1 and 3 can be combined into single command: portsnap fetch update (not support in older version of Portsnap).注: 3 1つのコマンドを組み合わせることができますFreeBSDのportsツリー、ステップ1との更新の場合: portsnap更新プログラム( Portsnap古いバージョンで)取得をサポートしていない。

Running Portsnap as Cron Job cronジョブとして実行しているPortsnap

portsnap fetch will not be able to execute from a cron job to avoid burden of sudden surge of downloading request to Portsnap servers. portsnap取得はcronジョブからサーバーにリクエストをダウンロードPortsnapの突然のサージの負担を回避するために実行することはできません。 Instead, a special portsnap cron command exists, which waits and sleeps for a random duration up to 3600 seconds before fetching updates, as if the fetch command is specified.代わりに、特別なportsnap cronのコマンドを待機すると寝て3600秒の更新情報を取得する前に、ランダムな期間中は、指定されているかのようにコマンドをフェッチ存在しています。

To run portsnap automatically with cron job, just add the line into /etc/crontab (the line set the time to 3 AM everyday, you can choose your own timing): cronジョブを自動的にだけは/ etc / crontab (毎日午前3行目には、時間を設定するには、行を追加しますportsnap実行するには、 )自分のタイミングを選ぶことができる:

0 3 * * * root /usr/sbin/portsnap cron 0 3 * * *ルートの/ usr / sbin / portsnap cronを

This will ensure that the FreeBSD snapshot of ports collection is always up-to-date and can be quickly extracted into /usr/ports.このことを確認することは、常に最新のものを収集するポートのFreeBSDのスナップショットを最新かつ迅速に抽出することができますを/ usr /ポート。

Note: Running portsnap update from cron is not recommended as it may cause problem if installing or updating of a port happens at the time the cron job runs.インストールまたはアップデートする場合は、ポートの問題を引き起こす可能性がありますがcronジョブを実行時に発生する注: portsnap cronから更新プログラムを実行しているお勧めできません。 Portsnap will updates or removes files which are being used by the port build. Portsnapが更新または削除は、ポートのビルドで使用されているファイルです。 However, running portsnap -I update to update the ports Index files is possible, and can be used together with portversion to identify installed software which is out of date.しかし、 portsnap を実行して、私は、ポートインデックスファイルを更新する更新プログラム可能であり、 portversion一緒では、古くなっているソフトウェアのインストールを識別するために使用することができます。

To update ports compressed snapshot and the INDEX files in /usr/ports/, and send an email if any installed ports are out of date, use the following line in /etc/crontab:インストールポート日あれば、次の行を使用しているでは/ etc / crontabのポートのスナップショットとインデックスファイルは/ usr /ポートの圧縮を更新するには/にアクセスし、メールを送ってください:

0 3 * * * root portsnap -I cron update && pkg_version -vIL= 0 3 * * *ルートportsnap -私のcronのアップデート& & pkg_version - vIL =

Note: Older version of portsnap does not support listing multiple commands (eg, cron update) in the same invocation of portsnap.注記: portsnapの古いバージョンportsnapの同じ呼び出しで(例えば、 cronを更新)複数のコマンドリストをサポートしていません。 If the line above fails, try replacing portsnap -I cron update with portsnap cron && portsnap -I update.上記の場合、行が失敗すると、 portsnapを交換して、私はcronを更新portsnapのcron & & portsnap - iを更新した。

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要 :これはマシンとして"保証なしにされている"提供されているページを翻訳しています。 Machine translation may be difficult to understand.機械翻訳を理解するのが難しい場合があります。 Please refer toを参照してください original English articleオリジナルの英語記事 whenever possible.可能な場合。

Share and contribute or get technical support and help at共有して貢献するかを得る技術サポートと支援 My Digital Life Forums 私のデジタルライフフォーラム .



One Response to “Using Portsnap to Update FreeBSD Ports Tree Collection” 1つの応答" Portsnapを更新FreeBSDのportsツリーコレクション"を使用する

  1. Managing FreeBSD Ports « UNIX Administratosphere管理FreeBSDのports « UNIXのAdministratosphere
    February 9th, 2008 18:04 2008年2月9日18:04
    1

    [...] at My Digital Life, there is an excellent tutorial on using portsnap. [...]私のデジタルライフでは、優れたportsnapを使用して、チュートリアルです。 It covers not only the basics, but all the rest as [...]それだけでなく、基本的なことをカバーし、残りのすべての[...]

Leave a Replyは、返信のままに

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> これらのタグをhref=""使用することができますtitle="">の<a <abbr title=""> <acronym title=""> <b>ダウンロード<blockquote cite=""> <cite>の<code> <デル日時= " " >の<em> <i> <q cite=""> <strike> <strong>

Subscribe without commentingチャンネル登録コメントなし


Custom Search

New Articles新しい記事

Incoming Search Terms for the Article着信は、文書の検索利用規約

freebsd portsnap FreeBSDのportsnap - - portsnap portsnap - - portsnap proxy portsnapプロキシ - - freebsd update port tree FreeBSDの更新プログラムのポートツリー - - portsnap freebsd portsnap FreeBSDの - - freebsd update ports tree FreeBSDのportsツリーを更新 - - update ports tree portsツリーを更新 - - update port tree freeBSD FreeBSDのポートツリーを更新 - - freebsd portsnap proxy portsnap FreeBSDのプロキシ - - freebsd port tree update FreeBSDのポートツリーを更新 - - please update your ports tree and try again ポートツリーを更新してくださいもう一度お試しください - - Please update your ports tree and try again. ポートしてくださいツリーを更新してから、もう一度やり直してください。 - - portsnap cron portsnap cronを - - freebsd 7.0 portsnap 7.0はFreeBSD portsnap - - freebsd 7 update ports FreeBSDの7更新ポート - - freebsd update portsnap FreeBSDのアップデートportsnap - - portsnap server portsnapサーバ - - update portstree portstree更新 - - portsnap fetch update portsnapの更新を取得 - - how to portsnap どのようportsnap - - update ports tree freebsd FreeBSDのportsツリーを更新 - - updating ports freebsd FreeBSDのportsの更新 - - freebsd 7 cron portsnap 7 cronをportsnap FreeBSDの - - freebsd portsnap in cron cronはFreeBSDのportsnap - - how to update a port tree of FreeBSD どのようにFreeBSDのポートツリーを更新する - - portsnap update portsnap更新 - - freebsd 7 ports update FreeBSDの7ポート更新 - - Please update your ports tree and try again. ポートしてくださいツリーを更新してから、もう一度やり直してください。 freebsd FreeBSDの - - portsnap freebsd server portsnap FreeBSDのサーバー - - Updating freebsd ports FreeBSDのportsの更新 - - portsnap how to 方法については、 portsnap - - freebsd how to update port tree ポートツリーを更新する方法についてはFreeBSD - - freebsd 7 updating ports 7ポートのアップデートはFreeBSD - - freebsd 7 portsnap 7 portsnap FreeBSDの - - how to update port tree freebsd FreeBSDのポートツリーを更新する方法 - - update your ports tree and try again あなたのportsツリーを更新してからやり直してください - - how to update ports tree portsツリーを更新する方法 - - freebsd portsnap server FreeBSDのportsnapサーバー - - freebsd 7.0 update ports tree 7.0 FreeBSDのportsツリーを更新 - - update ports index ポートのインデックスを更新 - - portsnap servers portsnapサーバー - - update freebsd ports tree FreeBSDのportsツリーを更新 - - update freebsd ports FreeBSDのportsを更新 - - update freebsd 7 FreeBSDの更新 7 - - freebsd Please update your ports tree and try again してください FreeBSDのportsツリーを更新してからやり直してください - - ports update freebsd 7 ポート7 FreeBSDの更新 - - portsnap fetchフェッチportsnap - - freebsd how to update one port 1つのポートを更新する方法についてはFreeBSD - - get downloaded portsnap ダウンロードportsnapを取得 - - portsnap fetch serve portsnapを果たす取得 - -