centos:rpm:checkinstall
checkinstall
公式:http://asic-linux.com.mx/~izto/checkinstall/ ソースからrpmパッケージを作成するツール
事前準備
主要repoの一発インストール
CentOS 5.x(rpmforgeは一発無理)
rpm -Uvh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/5/x86_64/epel-release-5-4.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm rpm -ivh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
CentOS 6.x
rpm -Uvh http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
開発ツール、他
# yum -y install gcc # yum -y install rpm-build # yum -y install make # yum -y install gettext.x86_64
Git Install from yum repo
※Verが古いので、rpmbuildからのインストール推奨
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm # rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm # yum -y install git
Install
git repository から最新ソースを取得
# git clone http://checkinstall.izto.org/checkinstall.git # cd checkinstall/
そのままではインストールできないので関連ファイルを修正
# vi Makefile
#CONFDIR=$(PREFIX)/lib/checkinstall CONFDIR=$(PREFIX)
# vi checkinstallrc-dist
# Comma delimited list of files/directories to be ignored #EXCLUDE="" EXCLUDE="/selinux"
# vi installwatch/Makefile
#LIBDIR=$(PREFIX)/lib
LBITS := $(shell getconf LONG_BIT)
ifeq ($(LBITS),64)
LIBDIR=$(PREFIX)/lib64
else
LIBDIR=$(PREFIX)/lib
endif
# make # make install
パッケージ作成
実行テストを兼ねて、checkinstallのパッケージを作成
CentOS 6.xのみ
# mkdir -p /root/rpmbuild/SOURCES
# checkinstall
checkinstall 1.6.3, Copyright 2010 Felipe Eduardo Sanchez Diaz Duran
このソフトウェアはGNU GPLの下でリリースしています。
The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs? [y]:
パッケージのドキュメンテーションを準備..OK
使用するパッケージ方式を選んでください。
Slackwareなら[S], RPMなら[R], Debianなら[D]を入力R
**************************************
**** RPM package creation selected ***
**************************************
このパッケージは以下の内容で構成されます:
1 - Summary: [ CheckInstall installations tracker, version 1.6.2 ]
2 - Name: [ checkinstall ]
3 - Version: [ 20130419 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ Applications/System ]
7 - Architecture: [ x86_64 ]
8 - Source location: [ checkinstall ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ checkinstall ]
変更するものの番号を入力してください。Enterで続行します:
~省略~
**********************************************************************
Done. The new package has been saved to
/usr/src/redhat/RPMS/x86_64/checkinstall-20130419-1.x86_64.rpm
You can install it in your system anytime using:
rpm -i checkinstall-20130419-1.x86_64.rpm
**********************************************************************
以降は、パッケージを作成したいソースのmakeまで終わらせて、checkinstall実行
centos/rpm/checkinstall.txt · 最終更新: 2025/02/16 13:53 by 127.0.0.1
