mrepo 및 grouplist/groupinstall?, mrepo가 ​​그룹에서 예상대로 작동하지 않습니다.

mrepo 및 grouplist/groupinstall?, mrepo가 ​​그룹에서 예상대로 작동하지 않습니다.

모두,

설정하려고 하는데므레포내부 저장소를 가질 수 있습니다. 꽤 많은 시간을 보낸 후 모든 것이 예상대로 작동하는 것 같습니다.제외하고그룹용.

에서 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

건배.

관련 정보