当前位置:网站首页>Rhel8 patch package production
Rhel8 patch package production
2022-07-29 04:04:00 【wy_ hhxx】
- Redhat For downloading and upgrading on the official website rpm package
- Generate modules.yaml file
- to update repodata
- Generate patches and verify
1. Follow the steps below to generate and verify modules.yaml Documents are available
(1) The initial upgrade package is stored in /var/www/html/updates/x86_64/packages in
(2) install python3-libmodulemd and python3-createrepo_c And modulemd-tools Three modules , among python3-libmodulemd and python3-createrepo_c Install the package on the system AppStream Warehouse ,modulemd-tools stay 8.5 In the installation package after version ,modulemd-tools Installation of depends on python3-libmodulemd and python3-
createrepo_c
# rpm -ivh python3-libmodulemd-2.9.4-2.el8.x86_64.rpm
# rpm -ivh python3-createrepo_c-0.16.2-2.el8.x86_64.rpm
# rpm -ivh modulemd-tools-0.7-6.el8.noarch.rpm(3) Entry directory /var/www/html/updates/x86_64/, Use createrepo_c Generate repodata
# cd /var/www/html/updates/x86_64/
# createrepo_c .(4) Use repo2module Generate modules.yaml file
# repo2module -s stable ./ modules.yamlBe careful : stay RHEL8 in , Without this file, subsequent upgrades will report errors
2.modules.yaml After file generation , Use the following steps to upgrade on the server to verify that the file and upgrade package can be used together
(1) Use modifyrepo_c To update the generated repodata
# modifyrepo_c --mdtype=modules modules.yaml repodata/(2) eliminate yum Historical information of environment
# yum clean all(3) perform yum upgrade
# yum --disablerepo=* --enablerepo=UPDATES upgrade --allowerasing --skip-broken --nobest
3. Package the usable upgrade package
hold /var/www/html/updates/x86_64/ In the catalog packages/ and modules.yaml become involved tar.gz Compressed package of format
#cd /var/www/html/updates/x86_64/
#tar -zcvf RHEL8_Patch.tar.gz modules.yaml packages/4. Use the upgrade package to upgrade
(1) Upload the upgrade package to the to be upgraded Redhat The server
(2) Unzip the upgrade package to /var/www/html/updates/x86_64/
# tar -zxvf RHEL8_Patch.tar.gz -C /var/www/html/updates/x86_64/
(3) Get into /var/www/html/updates/x86_64/ And implement createrepo_c Generate repodata
# cd /var/www/html/updates/x86_64/
# createrepo_c .
(4) perform yum upgrade
# yum --disablerepo=* --enablerepo=UPDATES upgrade --allowerasing --skip-broken --nobest
5) Confirm that the upgrade operation is completed and restart the system
# reboot
边栏推荐
- 初识C语言(3)
- The list is not updated in real time when JS V-for data changes
- Zhihuijun, a genius of Huawei, made a modular mechanical keyboard, which caused an earthquake in the geek circle. Netizens: This is the real customization
- 【C语言入门】ZZULIOJ 1031-1035
- Communication between parent-child components and parent-child components provide and inject
- Safari's compatibility with Z-index
- 数据挖掘——关联分析例题代码实现(下)
- SQL server当存储过程接收的参数是int类型时,如何做判断?
- A little understanding of pointer, secondary pointer, wild pointer, pointer as function return value
- UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0x90 in position 614: ordinal not in range(128)
猜你喜欢

面试必备!TCP协议经典十五连问!

Batch production and upload sales NFT opensea eth polygon

Data mining -- Introduction to the basis of association analysis (Part 1)

Basic configuration of BGP - establish peers and route announcements

Solve the problem of garbled code when opening the project code in idea

安装ros的laser_scan_matche库所遇到的问题(一)

伏英娜:元宇宙就是新一代互联网!

Since 2019, you must have stopped using this marketing strategy

Ma Zhixing entered the mass production of front loading, starting with the self-developed domain controller?

The solution of porting stm32f103zet6 program to c8t6+c8t6 download program flash timeout
随机推荐
BGP的基础配置---建立对等体、路由宣告
Note: restframe work records many to one tables, how to serialize in that table (reverse query)
Array as function parameter -- pointer constant / constant pointer
SQL语句 关于字段转换怎么写
STM32F103ZET6程序移植为C8T6+C8T6下载程序flash timeout的解决方案
About the writing of ALV format control part
Opensql quick learning
The return value of the function is the attention of the pointer, the local variables inside the static limit sub function, and how the pointer to the array represents the array elements
“蔚来杯“2022牛客暑期多校训练营1 J Serval and Essay(启发式合并)
Design of environment detection system based on STM32 and Alibaba cloud
Wechat applet monitors sliding events on the screen
Typescript from getting started to mastering (XVI) configuration file - first knowledge of compileroptions configuration item
Ma Zhixing entered the mass production of front loading, starting with the self-developed domain controller?
Some problems about pointers
Meeting notice of OA project (Query & whether to attend the meeting & feedback details)
Lucifer 98 life record ing
EMD 经验模态分解
Blood cases caused by < meta charset=UTF-8> -- Analysis of common character codes
企业网的三层架构
The table of antd hides the pager when there is only one page