所有,
我正在设置mrepo,所以我们可以有内部存储库。 经过相当长的一段时间之后,事情似乎按预期工作, 除了小组。
从man createrepo :
示例以下是一个具有组文件的存储库示例。 请注意,组文件应与rpm软件包位于同一目录(即/path/to/rpms/comps.xml)。
- 为了pipe理某个应用程序,定义命令列表和访问所需的最佳方法是什么?
- GVFS位置在〜/ .gvfs中不可用
- 如何从HP DL360 Gen 9中删除HDFS的RAID选项
- cloud-init不会在gce中插入实例级别的ssh密钥
- Redhat与反向代理,一个特定的configuration
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/
为迟到的答复道歉。 希望这可以帮助你或其他人search这个话题。
我真的很希望看到你所指出的输出不包含任何错误。 但是,您的post中缺less的一件事是选项-d 。 在我的手册页这表明产生sqlite数据库与yum一起使用。 没有这个选项,我不确定createrepo是否做得很好。 也许它是索引目录,但不生成任何输出。
这是我使用的,它工作得很好:
createrepo -g /path/to/comps.xml -pd --update /path/to/RPMs
干杯。