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

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

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
  • jupqwpoduv
  • pztpdiptzy
  • plxsgdzdie
  • gqrijynyen
  • moelsowrve
  • Discover How to Unlock Free Cash uihkeoiink.temp.swtest.ru L8
  • Be Granted Fellowships and Financial Prizes cy453698.tw1.ru v5
  • Access your special cash offer now cy453698.tw1.ru K3
  • A Present of Cash is Ready for You cy453698.tw1.ru PI
  • Start with a Bonus for Enrolling uihkeoiink.temp.swtest.ru RI
  • You have located funds waiting to be claimed cy453698.tw1.ru 6Z
  • Start with a Bonus for Enrolling cy453698.tw1.ru q8
  • Welcome cash gift for new members cy453698.tw1.ru d9
  • Take this cash with no questions asked cy453698.tw1.ru CQ
  • Potential for an enormous jackpot uihkeoiink.temp.swtest.ru lJ
  • Take this money  it's free and clear cy453698.tw1.ru vI
  • Free cash bonus for trying us cm873914.tw1.ru Nb
  • Access the bonus boom inside cm873914.tw1.ru 5I
  • Be Compensated in Cash for Trading uihkeoiink.temp.swtest.ru Da
  • Last cash payout happening now cy453698.tw1.ru Uy
  • Claim an Exclusive Bonus Offer uihkeoiink.temp.swtest.ru jl
  • ishdjidhlq
  • Tap here to claim your USD50 bonus uihkeoiink.temp.swtest.ru G3
未经允许不得转载: LIFE & SHARE - 王颜公子 » CentOS从源代码RPM生成二进制RPM

分享

作者

作者头像

Madman

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

0 条评论

暂时还没有评论.

专题系列