Error: No available modular metadata for modular package

Error: No available modular metadata for modular package

------------->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

  Error: No available modular metadata for modular package

-------------->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

[确保module rpm repo服务器时centos8系列环境]

先下载rpm包:

cd /usr.share/nginx/html/python36

在这里插入图片描述

安装modular metadata生成工具:

   dnf install python3-devel python3 gcc
   dnf install python3-createrepo_c
   dnf install python3-libdnf 
   dnf install python3-libmodulemd
   # dnf install libmodulemd
   # dnf install modulemd-tools

随便找一个目录,执行git clone操作:

   git clone https://github.com/rpm-software-management/modulemd-tools.git
   cd modulemd-tools/repo2module/
   python3 setup.py install --user

创建repodata 和 modular metadata:

   cd /usr.share/nginx/html/python36
   createrepo_c .
   /root/.local/bin/repo2module  -s stable -d . modules.yaml
   modifyrepo_c --mdtype=modules modules.yaml repodata

客户端配置module yum repo:

cd /etc/yum.repos.d/
cat module.repo
[module]
name=module
baseurl=http://xxx/python36/
enabled=1

猜你喜欢

转载自blog.csdn.net/weixin_43010385/article/details/114274435