CentOS 5.5にcheckinstallをインストール

CentOS 5.5 にRedmineを入れる兼ね合いで checkinstall を手で導入した時の作業メモ

[code language=”text”]
# yum –enablerepo=rpmforge install checkinstall
No package checkinstall available.
#
[/code]

とDAGのリポジトリではcheckinstallのパッケージが見つからなかったので手動でインストールする方法。

手順としては以下の3ステップ。
1) ソースからインストールする
2) checkinstall自体をRPM化しておく
3) RPM化したcheckinstallを導入する(RPMを導入しているのはyumで管理しやすくするため)

1) ソースからインストールする

[code language=”text”]
# wget http://asic-linux.com.mx/~izto/checkinstall/files/source/checkinstall-1.6.2.tar.gz
# tar zxvf checkinstall-1.6.2.tar.gz
# cd checkinstall-1.6.2
# make
# make install
[/code]

2) checkinstall自体をRPM化しておく

[code language=”text”]
# checkinstall
checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
The checkinstallrc file was not found at:
/usr/local/sbin/../checkinstallrc
Assuming default values.
The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs? [y]: y
Preparing package documentation…OK
Please choose the packaging method you want to use.
Slackware [S], RPM [R] or Debian [D]? R
**************************************
**** RPM package creation selected ***
**************************************
This package will be built according to these values:
1 – Summary: [ CheckInstall installations tracker, version 1.6.2 ]
2 – Name: [ checkinstall ]
3 – Version: [ 1.6.2 ]
4 – Release: [ 1 ]
5 – License: [ GPL ]
6 – Group: [ Applications/System ]
7 – Architecture: [ x86_64 ]
8 – Source location: [ checkinstall-1.6.2 ]
9 – Alternate source location: [ ]
10 – Requires: [ ]
11 – Provides: [ checkinstall ]
Enter a number to change any of them or press ENTER to continue:
**********************************************************************
Done. The new package has been saved to
/usr/src/redhat/RPMS/x86_64/checkinstall-1.6.2-1.x86_64.rpm
You can install it in your system anytime using:
rpm -i checkinstall-1.6.2-1.x86_64.rpm
**********************************************************************
[/code]

3) RPM化したcheckinstallを導入する

[code language=”text”]
# rpm -ivh /usr/src/redhat/RPMS/x86_64/checkinstall-1.6.2-1.x86_64.rpm
[/code]

Leave a Comment