
全部,
我正在嘗試設置姆雷波所以我們可以擁有內部儲存庫。經過一段艱苦的努力後,事情似乎如預期進行除了對於團體。
從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
乾杯。