/etc/portage/repos.conf

From Gentoo Wiki
< /etc‎ | portage
Jump to:navigation Jump to:search
This page is a translated version of the page /etc/portage/repos.conf and the translation is 100% complete.

/etc/portage/repos.conf は、現在 Portage に設定されているリポジトリの所在や設定を指定します。このディレクトリには、Gentoo ebuild リポジトリと追加の ebuild リポジトリを設定する .conf ファイルが含まれます。

/etc/portage/repos.conf/gentoo.conf が存在しない場合、(かつてのデフォルトのように /etc/portage/repos.conf が有効な "[gentoo]" セクションを含むファイルでない限り) /usr/share/portage/config/repos.conf のデフォルトが使用されます。sync-uri のようないくつかの必須の設定が /etc/portage/repos.conf/gentoo.conf で省略されている場合、/usr/share/portage/config/repos.conf の値が使用されます。priority のようないくつかの値については、どの設定ファイルにも存在しない場合でも Portage によって自動的に追加されます。

ヒント
eselect-repository は、/etc/portage/repos.conf を手で編集することなくリポジトリを設定できる便利なツールです。
メモ
repos.conf の形式とパラメータについての詳細な情報は、man 5 portage/etc/portage/repos.conf 節を参照してください。

リポジトリを管理する

ebuild リポジトリを追加、無効化または削除するには、eselect repository を使用します。eselect repository は、その他の機能も提供します。

/etc/portage/repos.conf 内に手動でファイルを作成してリポジトリを追加することもできます。ハンドブックの適切な節を参照してください(他のリファレンス)。

/etc/portage/repos.conf 内のファイルをテキストエディタで編集して、ebuild リポジトリの設定オプションを変更することができます。

リポジトリを一覧表示する

Portage に設定されたすべてのリポジトリを表示するには、portageqを実行してください:

user $portageq repos_config /
[DEFAULT]
auto-sync = yes
main-repo = gentoo
strict-misc-digests = true
sync-allow-hardlinks = true
sync-rcu = false
 
[brother-overlay]
auto-sync = yes
location = /var/db/repos/brother-overlay
masters = gentoo
strict-misc-digests = true
sync-allow-hardlinks = true
sync-rcu = false
sync-type = git
sync-uri = https://github.com/gentoo-mirror/brother-overlay.git
 
[gentoo]
auto-sync = yes
location = /var/db/repos/gentoo
masters = 
priority = -1000
strict-misc-digests = true
sync-allow-hardlinks = true
sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc
sync-openpgp-key-refresh-retry-count = 40
sync-openpgp-key-refresh-retry-delay-exp-base = 2
sync-openpgp-key-refresh-retry-delay-max = 60
sync-openpgp-key-refresh-retry-delay-mult = 4
sync-openpgp-key-refresh-retry-overall-timeout = 1200
sync-openpgp-keyserver = hkps://keys.gentoo.org
sync-rcu = false
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
sync-rsync-verify-max-age = 24
sync-rsync-extra-opts = 
sync-rsync-verify-jobs = 1
sync-rsync-verify-metamanifest = yes
 
[local]
auto-sync = no
location = /var/db/repos/local
masters = gentoo
strict-misc-digests = true
sync-allow-hardlinks = true
sync-rcu = false

ebuild リポジトリの優先度

あるリポジトリの優先度を設定するには、関連する repos.conf のセクションを手動で編集し、priority = を希望する値に設定してください。設定された値が高いほど優先度が高くなります。例:

ファイル /etc/portage/repos.conf/eselect-repo.confリポジトリの優先度を設定する
# created by eselect-repo
  
[guru]
location = /var/db/repos/guru
sync-type = git
sync-uri = https://github.com/gentoo-mirror/guru.git
priority = 100

優先度が明示的に設定されていないリポジトリのデフォルトは 0 です - Gentoo ebuild リポジトリは例外で、デフォルト値が -1000 です。

代替の sync プロトコル

::gentoo ebuild リポジトリを伝統的な rsync プロトコルに対する代替 (git や websync など)を使用して同期する例については、gentoo.conf の記事を参照してください。

関連項目

外部資料