rpm打包

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


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值