1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RPM build環境の構築

Last updated at Posted at 2015-12-17

前提条件

 昔々はRPMのbuildは /usr/local/src/redhat だったのでrootで作ったりしていたが昨今は一般ユーザで作るのが常識らしい。
 RPMをbuildする為にはbuild用のディレクトリを作る必要があるが、これには怠惰なコマンドが用意されているらしい。

CentOS 6, 7

パッケージインストール


 # yum install rpm-build
 # yum install rpmdevtools
 # yum install yum-utils

build環境の構築


 $ rpmdev-setuptree
  • rpmdevtools パッケージに入っている怠惰なコマンド

SPEC fileの書き方

RPM build

  • とりあえず試験をする際は、両方作ってもらわないと使い勝手が悪いので ba

 $ rpmbuild -ba XXXX.spec

RPM rebuild guide

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?