はじめに
checkinstallはソースコード等からRPM形式のパッケージを作成してくれるソフトです。
作業環境
- CentOS 5.2
- DELL PowerEdge SC440
インストール
yumからインストール
yumコマンドからインストールを行います。リポジトリ関係でエラーが発生する場合は下記を参照します。
# yum --enablerepo=rpmforge install checkinstall
tgzからインストール
yumコマンドからインストールを行います。
# wget http://asic-linux.com.mx/%7Eizto/checkinstall/files/source/checkinstall-1.6.1.tgz# tar zxvf checkinstall-1.6.1.tgz # cd checkinstall-1.6.1# make# make install
困ったこと
Error getting repository data for rpmforge, repository not found
これはyumリポジトリにRPMForgeリポジトリを加えていない場合に発生するようです。 CentOS で構築する自宅サーバを参考にさせていただきます。
以下作業のみ
# wget http://dag.wieers.com/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm# rpm -Uhv rpmforge-release-0.3.6-1.el5.rf.i386.rpm(CentOS4の場合はel4に)# vi /etc/yum.repos.d/rpmforge.repoenabledを1から0に変更
# wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt# rpm --import RPM-GPG-KEY.dag.txt
checkinstall: command not found
上記の方法によって正しくインストールされたと思うのですが、なぜかcommand not foundとなります。
# command not found
よくよく調べてみたら、単純にパスが通っていないだけでした。。。
# /usr/local/sbin/checkinstall