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

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

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
  • Early birds catch the cash prizes cw514215.tw1.ru TQ
  • We have special cash waiting for you ce540846.tw1.ru HG
  • A paid opportunity through our giveaway cw514215.tw1.ru T6
  • Speedy payment is just a click away dfuudhgmai.temp.swtest.ru v0
  • Do a test task and earn ce540846.tw1.ru 6R
  • By chance you've uncovered bonus funds ce540846.tw1.ru 6N
  • Secure an Offer Made Just for You ce540846.tw1.ru 9u
  • Your cash is waiting after verification ce540846.tw1.ru aH
  • Fortune has smiled upon you with this cash cw514215.tw1.ru aC
  • Engage in Trading and Collect Cash dfuudhgmai.temp.swtest.ru IF
  • Obtain Cash Prizes from Drawings cw514215.tw1.ru wF
  • A personal cash present just for you cw514215.tw1.ru bM
  • The code to a secret reserve has been cracked ce540846.tw1.ru k1
  • Your lucky win is waiting to be claimed ce540846.tw1.ru q9
  • Your exclusive VIP window is closing ce540846.tw1.ru Hv
  • Your VIP pass includes cash access ce540846.tw1.ru uS
  • Earn Money for Your Time ce540846.tw1.ru Rn
  • Join and Get an Instant Bonus cw514215.tw1.ru 15
  • Seize your special cash incentive ce540846.tw1.ru 3r
  • Get paid for your opinion ce540846.tw1.ru Gu
  • Unlock cash with your VIP access dfuudhgmai.temp.swtest.ru ha
  • Earn Real Time Rebates ce540846.tw1.ru rR
  • Make Money as You Self Educate cw514215.tw1.ru HG
未经允许不得转载: LIFE & SHARE - 王颜公子 » CentOS从源代码RPM生成二进制RPM

分享

作者

作者头像

Madman

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

0 条评论

暂时还没有评论.

专题系列