Linux:ソースからインストール&パッケージ作成
checkinstallなるものでソースからインストールしつつパッケージを作成できるらしいので試してみた。
まずはcheckinstallをインストールする。
rpm -ihv checkinstall-1.6.1
どこに入ったかわからなくなったので・・・^^;
どうやら/usr/local/sbin/checkinstall
-h でヘルプ表示
checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
Usage: checkinstall [options] [command [command arguments]]
Options:
*Package type selection*
-t,--type=
-S Build a Slackware package
-R Build a RPM package
-D Build a Debian package
*Install options*
--install=
--fstrans=
*Scripting options*
-y, --default Accept default answers to all questions
--pkgname=
--pkgversion=
-A, --arch, --pkgarch=
--pkgrelease=
--pkglicense=
--pkggroup=
--pkgsource=
--pkgaltsource=
--pakdir=
--maintainer=
--provides=
- Features provided by this package (.rpm)
--requires=
- Features required by this package
--rpmflags=
--rpmi Use the -i flag for rpm when installing a .rpm
--rpmu Use the -U flag for rpm when installing a .rpm
--dpkgflags=
--spec=
--nodoc Do not include documentation files
*Info display options*
-d<0|1|2> Set debug level
-si Run an interactive install command
--showinstall=
-ss Run an interactive Slackware installation script
--showslack=
*Package tuning options*
--autodoinst=
--strip=
--stripso=
--addso=
them to /etc/ld.so.conf
--reset-uids=
the owner/group for all dirs to root.root
--gzman=
--docdir=
--umask=
--exclude=
--include=
files/dirs listed in “listfile”
--inspect Inspect the package” file list
--review-spec Review the spec file before creating a .rpm
--review-control Review the control file before creating a .deb
--newslack Use the new (8.1+) Slackware description format
(“--newslack” implies “-S”)
--with-tar=/path/to/tar Manually set the path to the tar binary
in this system
*Cleanup options*
--deldoc=
--deldesc=
--delspec=
--bk Backup any overwritten files
--backup=
*About CheckInstall*
--help, -h Show this message
--copyright Show Copyright information
--version Show version information
RPMは-Rか。
何かのソースからパッケージを作ってみたい。
今回試すのはsquidにしてみる。
tar zxfv squid-3.0.STABLE13.tar.gz
cd squid-3.0.STABLE13
./configure
make
make install
/usr/local/sbin/checkinstall -R
途中の入力は全部パスして進めると、最後にこう表示される。OKか?
Done. The new package has been saved to
/usr/src/redhat/RPMS/i386/squid-3.0.STABLE13-1.i386.rpm
You can install it in your system anytime using:
rpm -i squid-3.0.STABLE13-1.i386.rpm
**********************************************************************
とりあえず/usr/src/redhat/RPMS/i386/にrpmができているのは確認した。
しかし、このパッケージからインストールしようとするとgrepの競合というエラーが出る。
ソースからすでにインストールしたからかな?