CentOSにcheckinstallをインストール
CentOSにcheckinstallをインストールするメモ
インストールに必要となるパッケージは事前にyumでいれておく。
[root@localhost ~]# yum -y install wget gcc make gettext rpm-build
[root@localhost ~]# yum -y install wget gcc make gettext rpm-build [root@localhost ~]# wget http://www.asic-linux.com.mx/~izto/checkinstall/files/source/checkinstall-1.6.2.tar.gz--2010-08-18 04:56:25-- http://www.asic-linux.com.mx/~izto/checkinstall/files/source/checkinstall-1.6.2.tar.gz www.asic-linux.com.mx をDNSに問いあわせています... 208.75.85.226 www.asic-linux.com.mx|208.75.85.226|:80 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 200 OK 長さ: 129577 (127K) [application/x-tar] `checkinstall-1.6.2.tar.gz' に保存中 100%[======================================================================================================================>] 129,577 50.5K/s 時間 2.5s 2010-08-18 04:56:28 (50.5 KB/s) - `checkinstall-1.6.2.tar.gz' へ保存完了 [129577/129577]
一度ソースからインストール
[root@localhost ~]# tar xzf checkinstall-1.6.2.tar.gz [root@localhost ~]# cd checkinstall-1.6.2 [root@localhost checkinstall-1.6.2]# make [root@localhost checkinstall-1.6.2]# make install
インストールしたcheckinstallをRPMで置き換える。
が、64bit環境ではエラーとなるバグがあり、以下で回避
[root@localhost checkinstall-1.6.2]# ln -s /usr/local/lib/installwatch.so /usr/local/lib64/installwatch.so
参考: http://ameblo.jp/tomandjelly/entry-10583897165.html
rpmインストール
[root@localhost checkinstall-1.6.2]# /usr/local/sbin/checkinstall 使用するパッケージ方式を選んでください。 Slackwareなら[S], RPMなら[R], Debianなら[D]を入力 R [root@localhost checkinstall-1.6.2]# rpm -i /usr/src/redhat/RPMS/x86_64/checkinstall-1.6.2-1.x86_64.rpm
インストールされているか確認
[root@localhost checkinstall-1.6.2]# rpm -qi checkinstall Name : checkinstall Relocations: (not relocatable) Version : 1.6.2 Vendor: (none) Release : 1 Build Date: 2010年08月18日 05時06分23秒 Install Date: 2010年08月18日 05時13分16秒 Build Host: localhost.localdomain Group : Applications/System Source RPM: checkinstall-1.6.2-1.src.rpm Size : 457334 License: GPL Signature : (none) Packager : checkinstall-1.6.2 Summary : CheckInstall installations tracker, version 1.6.2 Description : CheckInstall installations tracker, version 1.6.2 CheckInstall keeps track of all the files created or modified by your installation script ("make install" "make install_modules", "setup", etc), builds a standard binary package and installs it in your system giving you the ability to uninstall it with your distribution's standard package management utilities.