centos8本地倉庫
centos8
centos8除了需要創建repodata 還需要創建modular metadata,如果只有repodata就會報錯:No available modular metadata for modular package
1.安裝modular metadata生成工具
yum install createrepo
yum install python3-devel python3 gcc
yum install python3-createrepo_c libmodulemd
git clone https://github.com/rpm-software-management/modulemd-tools.git
cd modulemd-tools/
yum install python3-Cython
yum install krb5*
python3 setup.py install --user
2.創建repodata 和 modular metadata
cd /opt/package/repo/
createrepo ./
/root/.local/bin/repo2module -s stable . modules.yaml
modifyrepo_c --mdtype=modules modules.yaml repodata/
3.上述命令執行成功后會在該目錄下創建一個repodata目錄和一個modules.yaml文件
結束。

浙公網安備 33010602011771號