CentOS从源代码RPM生成二进制RPM

  • 原创
  • Madman
  • /
  • /
  • 0
  • 8399 次阅读

CentOS从源代码RPM生成二进制RPM-min.png

Synopsis: 有时候你在网上只找到应用程序的源代码RPM(SOURCE RPM,即SRPM),它的一般命令格式为xxx.src.rpm,首先需要从它生成可安装的二进制RPM,需要用到rpmbuild命令。需要注意的是,不论是用 RPM 组件管理系统、抑或是原始的 tar 压缩档,以 root 身份来创建软件可能会导致灾难,所以强烈建议使用非root用户执行本文的步骤

1. 准备环境

1.1 安装相关软件包

检查是否安装了rpm-build软件包:

$ rpmbuild --version
或者:
$ rpmbuild --showrc

如果没有请先安装:

$ sudo yum -y install rpm-build redhat-rpm-config

如果你的系统是最小化安装,可能你还需要安装kernel-develmakegccopensslopenssl-devel

分类: Linux
标签: SRPM RPM
  • bitsjx
  • Get Fast Supplemental Income ct731714.tw1.ru Ib
  • Get Rewarded for Every New Skill You Learn ct731714.tw1.ru Vx
  • Your efforts earned you this easy money cu673950.tw1.ru wF
  • Claim your large cash bonus today cu673950.tw1.ru eL
  • Comment and secure a cash prize ct731714.tw1.ru Tb
  • Get Money Sent Right to Your Account cu673950.tw1.ru CF
  • Participate in the giveaway for cash ct731714.tw1.ru Ck
  • Make Income from Just Living iuhilhifhd.temp.swtest.ru Ot
  • Link up and we'll add a cash bonus cu673950.tw1.ru oL
  • The Key to Your Bonus Cash is Here cu673950.tw1.ru mW
  • Participate to claim your bonus iuhilhifhd.temp.swtest.ru Sw
  • Money for watching It's that easy ct731714.tw1.ru je
  • Your Financial Gift Awaits   Take It ct731714.tw1.ru LK
  • Instant cash can be yours today iuhilhifhd.temp.swtest.ru r7
  • ktsdgtsyqf
  • Mark the holiday with a special cash present ct731714.tw1.ru Xv
  • Simple Like  Money reward cu673950.tw1.ru O4
  • vuevmuwtxo
  • krlsxkvvso
  • trgvzrisiz
  • uvemtxenxd
  • ztiwlviilu
  • wlphmqxjyg
未经允许不得转载: LIFE & SHARE - 王颜公子 » CentOS从源代码RPM生成二进制RPM

分享

作者

作者头像

Madman

如需 Linux / Python 相关问题付费解答,请按如下方式联系我

0 条评论

暂时还没有评论.

专题系列