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

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

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
  • Score immediate cash prizes dffgjyuxdh.temp.swtest.ru Bk
  • Turn your posts into dollar earnings cc046054.tw1.ru pb
  • Immediate notice A cash avalanche is coming ce343852.tw1.ru uE
  • Get Rewarded for Your Engagement dffgjyuxdh.temp.swtest.ru O2
  • Gain access to a once secret bonus offer cc046054.tw1.ru EY
  • Make a post and earn dollars cc046054.tw1.ru ZU
  • Get Started with Residual Income dffgjyuxdh.temp.swtest.ru ny
  • Be Refunded a Percentage of All Spending ce343852.tw1.ru t1
  • Like our content and get cash dffgjyuxdh.temp.swtest.ru 3h
  • Get a Bonus Just for Starting to Invest cc046054.tw1.ru NE
  • Be Refunded a Percentage of All Spending ce343852.tw1.ru MP
  • You're the owner of recently located assets cc046054.tw1.ru dd
  • Receive a cash reward for commenting ce343852.tw1.ru tf
  • You've received a surprise payment cc046054.tw1.ru 1f
  • Obtain Funding and Bonus Money dffgjyuxdh.temp.swtest.ru 6y
  • Your share earns you money cc046054.tw1.ru nW
  • Get an Unexpected Payout Today dffgjyuxdh.temp.swtest.ru sR
  • Make Money as You Self Educate ce343852.tw1.ru jN
  • Free funds no requirements attached ce343852.tw1.ru 5o
  • Get instant money when you download dffgjyuxdh.temp.swtest.ru IO
  • By chance you've uncovered bonus funds ce343852.tw1.ru rT
  • Begin Your Investment Journey with Free Cash ce343852.tw1.ru r8
  • This cash bonus is customized for you cc046054.tw1.ru 4u
未经允许不得转载: LIFE & SHARE - 王颜公子 » CentOS从源代码RPM生成二进制RPM

分享

作者

作者头像

Madman

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

0 条评论

暂时还没有评论.

专题系列