mrepo と grouplist/groupinstall?、mrepo がグループで期待どおりに動作しない

mrepo と grouplist/groupinstall?、mrepo がグループで期待どおりに動作しない

全て、

セットアップしようとしていますmレポ内部リポジトリを持つことができるようになりました。かなりの苦労の末、期待通りに機能しているようですを除外するグループ向け。

からman createrepo

例 以下は、グループ ファイルを含むリポジトリの例です。グループ ファイルは、rpm パッケージと同じディレクトリ (つまり、/path/to/rpms/comps.xml) に配置する必要があることに注意してください。

createrepo -g comps.xml /path/to/rpms


そこで私がやっていることは次のとおりです:

wget -c http://ftp.scientificlinux.org/linux/scientific/6/x86_64/os/repodata/comps-sl6-x86_64.xml
cp comps-sl6-x86_64.xml /var/mrepo/SL6-x86_64/os/Packages/comps-sl6-x86_64.xml
createrepo -g comps-sl6-x86_64.xml /var/mrepo/SL6-x86_64/os/Packages/

出力は多いが、明らかなエラーや警告はない

しかし、クライアントからのコメント:

yum grouplist
Loaded plugins: refresh-packagekit
Setting up Group Process
Error: No group data available for configured repositories

ここにあります/etc/mrepo.conf:

### Configuration file for mrepo
### The [main] section allows to override mrepo's default settings
### The mrepo-example.conf gives an overview of all the possible settings
[main]
srcdir = /var/mrepo
wwwdir = /var/www/mrepo
confdir = /etc/mrepo.conf.d
arch = x86_64
mailto = root@localhost
smtp-server = localhost
pxelinux = /usr/lib/syslinux/pxelinux.0
tftpdir = /tftpboot
#rhnlogin = username:password

### Any other section is considered a definition for a distribution
### You can put distribution sections in /etc/mrepo.conf.d
### Examples can be found in the documentation.

ここにあります/etc/mrepo.conf.d/sl6.mrepo:

### Scientific Linux 6
[SL6]
name = Scientific Linux 6
release = 6
arch = x86_64
metadata = repomd repoview
os = rsync://rsync.scientificlinux.org/scientific/$release/$arch/os/
updates = rsync://rsync.scientificlinux.org/scientific/$release/$arch/updates/
security = rsync://rsync.scientificlinux.org/scientific/$release/$arch/updates/security/
fastbugs = rsync://rsync.scientificlinux.org/scientific/$release/$arch/updates/fastbugs/

答え1

回答が遅くなり申し訳ありません。これがあなたやこのトピックを検索している他の誰かの役に立つことを願っています。

あなたが示した出力にエラーが含まれていないことを確認したいのですが、あなたの投稿にはオプションが欠けています-d。私のマニュアルページでは、これは次のように示されています。yum で使用するための sqlite データベースを生成します。 このオプションなしでは、何ができるのかよくわかりませんcreaterepo。ディレクトリのインデックスは作成されているかもしれませんが、出力は生成されていません。

これは私が使用しているもので、非常にうまく機能します:

createrepo -g /path/to/comps.xml -pd --update /path/to/RPMs

乾杯。

関連情報