![mrepo 및 grouplist/groupinstall?, mrepo가 그룹에서 예상대로 작동하지 않습니다.](https://rvso.com/image/567625/mrepo%20%EB%B0%8F%20grouplist%2Fgroupinstall%3F%2C%20mrepo%EA%B0%80%20%E2%80%8B%E2%80%8B%EA%B7%B8%EB%A3%B9%EC%97%90%EC%84%9C%20%EC%98%88%EC%83%81%EB%8C%80%EB%A1%9C%20%EC%9E%91%EB%8F%99%ED%95%98%EC%A7%80%20%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
모두,
설정하려고 하는데므레포내부 저장소를 가질 수 있습니다. 꽤 많은 시간을 보낸 후 모든 것이 예상대로 작동하는 것 같습니다.제외하고그룹용.
에서 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
건배.