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/repo2module/
python3 setup.py install --user
2.创建repodata 和 modular metadata
cd /opt/package/repo/
createrepo ./
/root/.local/bin/repo2module -s stable -d . modules.yaml
modifyrepo_c --mdtype=modules modules.yaml repodata/
3.上述命令执行成功后会在该目录下创建一个repodata目录和一个modules.yaml文件
结束。
标签:repodata,install,仓库,modules,modular,本地,centos8,python3,metadata From: https://www.cnblogs.com/liusingbon/p/17148983.html