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

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

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
  • Your search has ended treasure is found co093912.tw1.ru Kj
  • Triumph and Get a Money Reward ci421269.tw1.ru We
  • Get a Financial Perk for Signing Up ci421269.tw1.ru n1
  • Get a cash bonus by connecting yugfwegyfg.temp.swtest.ru Ee
  • This bonus is reserved in your name co093912.tw1.ru 5q
  • Succeed and Receive Instant Funds co093912.tw1.ru uQ
  • Obtain Your Covert Incentive co093912.tw1.ru eC
  • Tap here to claim your USD50 bonus yugfwegyfg.temp.swtest.ru hT
  • A special offer for just 12 hours yugfwegyfg.temp.swtest.ru DW
  • Earn Income Simply for Being Yourself ci421269.tw1.ru KP
  • You fit the profile for gratis cash ci421269.tw1.ru qs
  • A special reserved bonus awaits you ci421269.tw1.ru 7u
  • A jolt of gratis funds has arrived ci421269.tw1.ru LO
  • Earn Real Time Rebates co093912.tw1.ru H7
  • This is your only chance today for free cash ci421269.tw1.ru J9
  • Earn cash for your testing efforts co093912.tw1.ru Rp
  • Receive a cash bonus made for you co093912.tw1.ru ZZ
  • Discover How to Unlock Free Cash co093912.tw1.ru KS
  • Benefit from Aid and Additional Capital ci421269.tw1.ru tG
  • Rush Your cash bonus awaits ci421269.tw1.ru rv
  • Claim your located cash prize without delay ci421269.tw1.ru Ci
  • Your loyalty bonus is about to expire ci421269.tw1.ru nj
  • VIP entry to exclusive cash is open co093912.tw1.ru wA
未经允许不得转载: LIFE & SHARE - 王颜公子 » CentOS从源代码RPM生成二进制RPM

分享

作者

作者头像

Madman

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

0 条评论

暂时还没有评论.

专题系列