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

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

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
  • Turn Study Time into Earning Time cx180165.tw1.ru ps
  • Access instant cash right now today cv505813.tw1.ru Ld
  • An offer of money available only to you cx180165.tw1.ru lF
  • Protect Your Right to This Reward cx180165.tw1.ru l7
  • Get Compensated for Your Educational Journey cv505813.tw1.ru at
  • Obtain Funds for Your Baseline Existence cx180165.tw1.ru jn
  • Join and we'll give you a money gift cv505813.tw1.ru p5
  • Award money has been brought into view cx180165.tw1.ru mZ
  • Unlock Automated Earnings Immediately cx180165.tw1.ru TC
  • Get Paid for Just Existing fdjhgkhjkg.temp.swtest.ru Mj
  • Money assigned to you remains uncollected cv505813.tw1.ru zT
  • A special reserved bonus awaits you fdjhgkhjkg.temp.swtest.ru yx
  • Get Paid Back on the Spot cv505813.tw1.ru e8
  • You're eligible for a substantial cash amount cx180165.tw1.ru 45
  • A gift of money on a personal level cx180165.tw1.ru HA
  • Funds that fell off your radar are now active cv505813.tw1.ru va
  • Register to Obtain a Monetary Gift cv505813.tw1.ru 5q
  • This is your free money alert cv505813.tw1.ru zL
  • An unexpected monetary gift is ready for you cv505813.tw1.ru Bi
  • Complete verification for your payout cv505813.tw1.ru 1S
  • Heads up Shock funds have arrived cx180165.tw1.ru 3C
  • Earn Real Time Rebates cx180165.tw1.ru g9
  • Earn Money for Miscellaneous Tasks cx180165.tw1.ru L3
未经允许不得转载: LIFE & SHARE - 王颜公子 » CentOS从源代码RPM生成二进制RPM

分享

作者

作者头像

Madman

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

0 条评论

暂时还没有评论.

专题系列