centos8系module软件包管理仓库部署
简述
CentOS8 引入新的module软件包管理机制,下面将介绍如何部署搭建本地module源。
部署流程:
思路:
先制作nginx-1.14的module.yaml(需要微调),然后同法制作nginx-1.16的module.yaml(需要微调)。
然后将nginx-1.14与nginx-1.16的repodata都删除,去正在一个完整的repodata
然后将nginx-1.16的module.yaml去掉” document: modulemd-defaults”那部分信息,其他皆最加至nginx-1.14 module.yaml配置文件中。
最后在repodate同级目录下执行createrepo_mod . 去生成module索引。
1) 先制作nginx-1.14的module:
createrepo -v nginx-1.14/
2) 给nginx-1.14生成module.yaml文件
注意:repo2module执行前提需要确保和repodata的同级目录下:
repo2module命令再centos8已经集成了rpm默认yum安装即可, 如无请参考官方文档: https://github.com/rpm-software-management/modulemd-tools
cd nginx-1.14/
repo2module . --module-name nginx1-wei --module-stream 1.14 --module-version 123 --module-context xyz
【参数解析】
--module-name设置module的名
--module-stream 1.14 设置module-stream
--module-version 设置module-version
--module-context xyz 设置--module-context
执行完上面操作后会在当前目录下生成modules.yaml文件 module.yaml微调修改如下
[root@iZ2xxxxxxacZ module]# cat modules.yaml
---
document: modulemd-defaults
version: 1
data:module: nginx-weistream: "1.14" #这里设置的话,就决定在dmf module list的显示1.14 [d]profiles:1.14: [everything] #这里的everthing需要改成对应的流,例如guding或者devel#如果还有的其他版本的module可以设置例如:1.16: [xuanzhe]
... #<上面这些设置不同nginx的不同版本>
---
document: modulemd
version: 2
data:name: nginx-weistream: "1.14"version: 123context: xyzsummary: <auto-generated module summary>description: >-<auto-generated module description>license:module:- MITcontent:- <FILL THIS IN>profiles:everything: #这里erverthing改成guding(流)rpms:- nginx- nginx-all-modules- nginx-filesystem- nginx-mod-http-image-filter- nginx-mod-http-perl- nginx-mod-http-xslt-filter- nginx-mod-mail- nginx-mod-streamapi:rpms:- nginx- nginx-all-modules- nginx-filesystem- nginx-mod-http-image-filter- nginx-mod-http-perl- nginx-mod-http-xslt-filter- nginx-mod-mail- nginx-mod-streamcomponents:rpms:nginx:rationale: Present in the repositoryartifacts:rpms:- nginx-1:1.14.1-9.module_el8.0.0+184+e34fea82.aarch64- nginx-all-modules-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch- nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch- nginx-mod-http-image-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.aarch64- nginx-mod-http-perl-1:1.14.1-9.module_el8.0.0+184+e34fea82.aarch64- nginx-mod-http-xslt-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.aarch64- nginx-mod-mail-1:1.14.1-9.module_el8.0.0+184+e34fea82.aarch64- nginx-mod-stream-1:1.14.1-9.module_el8.0.0+184+e34fea82.aarch64
...
3) 制作nginx-1.16的module(方法同上):
4) 合并nginx-1.14与module-1.16的module:
删除nginx-1.14/repodate nginx-1.16/repodata重新生成两仓库的yum索引将nginx-1.16的module.yaml配置去掉” document: modulemd-defaults”那部分信息,其他的配置都追加到nginx-1.14的module.yaml配置文件中,完整如下
[root@icbbbbbxxx module]# cat /root/module/modules.yaml
---
document: modulemd-defaults
version: 1
data:module: nginx-weistream: "1.14"profiles:1.14: [guding]1.16: [xuanze]
...
---
document: modulemd
version: 2
data:name: nginx-weistream: "1.14"version: 123context: f32summary: <auto-generated module summary>description: >-<auto-generated module description>license:module:- MITcontent:- <FILL THIS IN>profiles:guding:rpms:- nginx- nginx-all-modules- nginx-filesystem- nginx-mod-http-image-filter- nginx-mod-http-perl- nginx-mod-http-xslt-filter- nginx-mod-mail- nginx-mod-streamapi:rpms:- nginx- nginx-all-modules- nginx-filesystem- nginx-mod-http-image-filter- nginx-mod-http-perl- nginx-mod-http-xslt-filter- nginx-mod-mail- nginx-mod-streamcomponents:rpms:nginx:rationale: Present in the repositoryartifacts:rpms:- nginx-1:1.14.1-9.module_el8.0.0+184+e34fea82.aarch64- nginx-all-modules-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch- nginx-filesystem-1:1.14.1-9.module_el8.0.0+184+e34fea82.noarch- nginx-mod-http-image-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.aarch64- nginx-mod-http-perl-1:1.14.1-9.module_el8.0.0+184+e34fea82.aarch64- nginx-mod-http-xslt-filter-1:1.14.1-9.module_el8.0.0+184+e34fea82.aarch64- nginx-mod-mail-1:1.14.1-9.module_el8.0.0+184+e34fea82.aarch64- nginx-mod-stream-1:1.14.1-9.module_el8.0.0+184+e34fea82.aarch64
...
--- #nginx-1.16的mudule.yaml配置信息加入了下面
document: modulemd
version: 2
data:name: nginx-weistream: "1.16"version: 456context: j23summary: <auto-generated module summary>description: >-<auto-generated module description>license:module:- MITcontent:- <FILL THIS IN>profiles:xuanze: #如果想增加类似common devel这样的流,就在api上面在新增数据就行rpms:- nginx- nginx-all-modules- nginx-filesystem- nginx-mod-http-image-filter- nginx-mod-http-perl- nginx-mod-http-xslt-filter- nginx-mod-mail- nginx-mod-streamapi:rpms:- nginx- nginx-all-modules- nginx-filesystem- nginx-mod-http-image-filter- nginx-mod-http-perl- nginx-mod-http-xslt-filter- nginx-mod-mail- nginx-mod-streamcomponents:rpms:nginx:rationale: Present in the repositoryartifacts:rpms:- nginx-1:1.16.1-2.module_el8.4.0+820+127618ce.1.aarch64- nginx-all-modules-1:1.16.1-2.module_el8.4.0+820+127618ce.1.noarch- nginx-filesystem-1:1.16.1-2.module_el8.4.0+820+127618ce.1.noarch- nginx-mod-http-image-filter-1:1.16.1-2.module_el8.4.0+820+127618ce.1.aarch64- nginx-mod-http-perl-1:1.16.1-2.module_el8.4.0+820+127618ce.1.aarch64- nginx-mod-http-xslt-filter-1:1.16.1-2.module_el8.4.0+820+127618ce.1.aarch64- nginx-mod-mail-1:1.16.1-2.module_el8.4.0+820+127618ce.1.aarch64- nginx-mod-stream-1:1.16.1-2.module_el8.4.0+820+127618ce.1.aarch64
...
5) 生成module索引:
在repodata的同级目录下执行createrepo_mod . 来生成module索引
centos8系module软件包管理仓库部署相关推荐
- CentOS6.4之Linux软件包管理
二进制软件包管理(RPM.YUM) 源代码包安装 脚本安装(Shell或Java脚本) Debian系Linux软件包管理简介 一.RPM包管理 RPM软件包的一个例子: sudo-1.8.6p3-7 ...
- helm部署仓库中没有的包_Kubernetes的Helm软件包管理器简介
helm部署仓库中没有的包 Before we dive into the Helm package manager, I'm going to explain some key concepts t ...
- Docker harbor私有仓库部署与管理
Docker harbor私有仓库部署与管理. 前言 一.什么是Harbor 二.Harbor的特性 三.Harbor的构成 四.Harbor部署 4.1 环境准备 4.2 部署Docker Comp ...
- 软件包管理以及如何创建本地yum仓库
注:该文章中"+"等于 空格."跟" = 无空格. 软件包管理以及如何创建本地yum仓库 rpm下载安装,升级,卸载和查询 如何建立yum仓库 把光盘做成本地y ...
- 软件包管理 之 Fedora Extras(Fedora 计划的扩充资源) rpm.livna.org软件仓库的介绍和应用...
作者:北南南北 来自:LinuxSir.Org 提要:rpm.livna.org 是一个重要的Fedora 扩充和增强资源,资源更新较快:是我们必用的资源之一:拥有apt和yum源:为Fedora c ...
- Docker容器之harbor私有仓库部署与管理
Docker容器之harbor私有仓库部署与管理 前言 一.Harbor概述 二.Harbor的特性 三.Harbor的构成 四.Harbor私有仓库搭建 (1)安装docker-compose (2 ...
- 大数据与云计算学习计划 (一) 云计算系统管理 6 Linux中RPM软件包管理操作 、 Yum软件包仓库操作(概念与实操)
大数据与云计算学习计划 (一) 云计算系统管理 6 Linux中RPM软件包管理操作 . Yum软件包仓库操作(概念与实操) 一.RPM软件包管理 1.常见软件包类型 2.RPM包文件名特征 3.RP ...
- 【Linux扩展】五、软件包管理 ——RPM(RedHat Package Manager,RedHat软件包管理工具)查询与卸载、YUM仓库配置
软件包管理 5.1 RPM 5.1.1 RPM 概述 5.1.2 RPM 查询命令(rpm -qa) 5.1.3 RPM 卸载命令(rpm -e) 5.2 YUM 仓库配置 5.2.1 YUM 概述 ...
- RPM(红帽软件包管理器)和Yum软件仓库
1.红帽软件包管理器 RPM机制是为了解决在校效.安装.卸载.查询.升级等管理软件操作过难设计的. 常用RPM软件包命令: 1)安装软件命令格式:rpm -ivh filename.rpm 2)升级软 ...
最新文章
- 大型数据库设计原则与技巧
- 【Harvest源码分析】GetF0CandidateContour函数
- 教您用CT数据和桌面3D打印机打印自己的器官模型
- AJAX+JSF组件实现高性能的文件上载
- HTML5和css3的总结
- DevOps笔记-10:金融行业分支策略的建议
- STM32F1迷你板外部中断
- C/C++多线程编程之一】VC6.0安装pthread
- ajax如何解决浏览器缓存问题
- java面试题42从以下哪一个选项中可以获得Servlet的初始化参数?
- JDBC笔记-李伟杰版
- 论文阅读翻译(全)【一直更新】
- mysql: order by, group by ,having, select, where 执行 顺序
- 【飞秋】JS 实现完美include
- jQuery中的跨域问题
- 梯度向量的超简单理解
- 正态分布是离散分布还是连续分布_内容范围:正态分布,泊松分布,多项分布,二项分布,伯努利分布...
- 2021安徽安全员C证考试多选练习题库
- oracle繁体字筛选,Oracle数据库字符集浅析
- 仿京东收货地址三级联动
热门文章
- 程序员的健康作息时间
- 2023Track Tech防伪溯源技术展| 防伪溯源 | 智慧包装 | 安全印刷
- 张家界国家森林公园、天门山、凤凰古城深度游攻略
- 从春运分析服务器宕机原因
- java毕业设计现有传染病查询系统mybatis+源码+调试部署+系统+数据库+lw
- 南京大学计算机学院推免名单,南大计算机系招收2014级研究生外校推免生复试名单...
- Amazing!你的超级大礼包已送出,请注意查收!
- Project 1:Search in Pacman(吃豆人搜索实验)(一)
- 康瑞的KR0800替代JST刺破式连接器,通流达0.5A,满足边缘汽车连接器国产化替代需求
- 考研初试、复试分数线、考研信息查询网站、考研国家线、34所学校自划线、考研A区、B区、考研调剂、全国学科排名、全国各省市研招网等考研相关信息汇总