rpm打包

本文详细介绍了RPM包的概念及其组成部分,包括程序文件、依赖信息、冲突检查及安装操作等内容。同时,通过OceanBase的打包实践,展示了如何利用RPM进行软件的标准化分发和安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

RPM提供了一种标准的软件分发和安装方式。

What Is An RPM Package?

In simple terms, an RPM package is an advanced form of a container for other files. Generally, it includes:

  1. The program to be installed plus all the necessary files that accompany this program.
  2. Information about the program and the RPM package itself.
  3. Information about the program’s dependencies, which means info about what other software needs to be installed, so your program to function correctly in the system.
  4. Information about potential conflicts between the program and other software that is currently installed in the system.
  5. Actions that need to be performed when the program is installed/upgraded/removed.
1. 程序本身+程序自带库
2. 程序的介绍性信息、供外接搜索的元信息
3. 程序依赖的包列表,rpm安装的时候会自动检测并安装这些包
4. 记录冲突包。安装时会检测是否已经安装了冲突包。
5. 安装更新删除的具体动作


详情参考oceanbase/rpm/oceanbase.spec


OceanBase打包使用了阿里统一的打包系统,在平台上指定svn的branch、打包平台上需要预删除的包等基本元信息,然后就会在后台自动化打包,并自动发布在内网OceanBase RPM集里面。


这里着重说一下require里面的版本号,lzo = 2.0.6, lzo >=2.0.6 ,这指定了目标机器lzo的版本(必须为2.0.6-xxx或高于该版本)


这里有所有关于RPM的答案:http://rpm5.org/docs/max-rpm.html


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值