CheckInstall
ソースからRPM,DEBなどのパッケージを作るツール。
インストール
パッケージがあるので、適当に導入。
使用方法
- make
- su
- checkinstall
for Fedora, etc
cd tar xvzf Omni-1.6.tar.gz cd Omni-1.6 ./configure make su checkinstall -R --nodoc
This package will be built according to these values: 1 - Summary: [ Omni OpenMP Compiler System ] 2 - Name: [ omni-compiler ] 3 - Version: [ 1.6 ] 4 - Release: [ 1 ] 5 - License: [ LGPL ] 6 - Group: [ Development/Languages ] 7 - Architecture: [ i386 ] 8 - Source location: [ Omni-1.6 ] 9 - Alternate source location: [ ] 10 - Requires: [ ] 11 - Provides: [ omni-compiler ]
rpm -ivh /usr/src/redhat/RPMS/i386/omni-compiler-1.6-1.i386.rpm vi ~/.bash_profile
# Omni PATH=$PATH:/usr/local/lib/openmp/libexec
for Debian
例:Visitors
makeのターゲットにinstallがない場合はでっちあげる
tar xvzf visitors-0.6.tar.gz cd visitors_0.6/ echo -e "\ninstall:\n\tinstall \$(PRGNAME) /usr/local/bin/" >> Makefile make su checkinstall -D --nodoc
This package will be built according to these values: 0 - Maintainer: [ root@localhost.localdomain ] 1 - Summary: [ Very fast web log analyzer ] 2 - Name: [ visitors ] 3 - Version: [ 0.6 ] 4 - Release: [ 1 ] 5 - License: [ GPL ] 6 - Group: [ checkinstall ] 7 - Architecture: [ i386 ] 8 - Source location: [ visitors_0.6 ] 9 - Alternate source location: [ ]
関連
パッケージを解凍する
- RPM
rpm2cpio hoge.rpm | cpio -id
- DEB
ar -x hoge.deb