|
|
|
[画像: ]
by Mario M. Knopf (homepage) 購噐恬宀: Mario 浪散嚥Linux、利大才柴麻字芦畠吉屢購議垢恬。 朕村: |
姜勣:
Checkinstall 頁匯倖嬬貫 tar.gz窃議坿旗鷹徭強伏撹RPM?Debian賜Slackware芦廾淫議殻會。宸劔聞低嬬喘叱窄侭嗤議 tar.gz 窃議坿旗鷹伏撹^孤昌 ?議芦廾賜宀亢墮淫。
将械竃孖宸劔議諒籾?低載?編喘議殻會峪嗤 tar.gz議坿旗鷹辛喘?短繁戻工 rpm 賜宀 Debian淫?。宸劔?低峪挫和墮指坿旗鷹?盾儿?隼朔返強園咎。欺朕念葎峭?匯俳屎械。隼遇?輝低?評渠万議扮昨椿?
Makefile猟周峪淫凄阻載富秤趨和議亢墮箭殻。輝隼?低辛參委殻會芦廾欺匝扮猟周斜?隼朔芝和侭嗤喇殻會伏撹賜俐個議猟周?恷朔評茅麿断。徽頁泌惚宸倖殻會勣将械嶷仟園咎?椎劔恂頁掲械祐逗議?垢恬楚匆頁屢輝寄議。 Felipe Eduardo侭亟議 CheckInstall [1] Sánchez Díaz Durán 祥頁喘栖盾畳宸倖諒籾議。
匯違傍栖?厘断園咎芦 廾匯倖喇GNU Autoconf塘崔議殻會頁寡喘泌和議化帶?
./configure && make && make
install.
宸倖 configure 重云猟周頁喘栖^佳 ?竃匯狼双狼由屢購議延楚?宸乂延楚頁壓朔中議園咎狛殻勣喘欺議。万繍殊臥狼由延楚峙頁倦諾怎園咎勣箔?隼朔聞喘宸乂延楚壓殻會淫坪耽倖猟周斜和伏撹 Makefile 。緩翌?configure 重云珊氏伏撹凪麿猟周?麿断頁?
configure重云猟周撹孔塰佩岻朔, 低氏補秘make栖園咎殻會?誼欺低俶勣議辛峇佩猟周。低匆辛嬬壓make岻朔瀧貧聞喘make check栖塰佩霞編。徽頁宸峪頁辛僉議化帶?咀葎宸俶勣宸倖殻會淫議屶隔。泌惚 make撹孔議頼撹阻?低辛參聞喘make install栖芦廾宸倖殻會阻!!載苧?圍m螻付皺縦穉菻ň姉Ù犢愴35沺3茂魄苛虻蛋烹d秧敏墺旆幹翮覽栂勅鬈佻楕簇?make clean栖賠茅宸乂伏撹議辛峇佩猟周才朕炎猟周。泌惚低珊?評茅喇configure伏撹議猟周?椎担補秘 then typemake distclean。朔曾化揖make check匯劔?頁辛僉議??万断宥械頁蝕窟宀壓蝕窟才霞編竣粁侭聞喘?匆辛參瓜匯違聞喘宀喘栖准福啣徒腎寂賜宀隠隔猟周斜議潤更酒準苧酔。総翌make distclean聞誼厘断壓音揖窃侏議窮辻貧園咎殻會撹葎辛嬬。
購噐GNU Autoconf議峋聾彿創辛參壓壓?猟亀[2]貧孀欺。壓児云初府岻翌?低辛參宥狛亟低徭失議configure重云、喘M4園殻才幹秀徭失議崎吉圭塀栖僥楼厚謹嗤購GNU Build System議岑紛。
念中戻欺?厘断寡喘GNU Autoconf宥狛匯狼双泌和峺綜栖園咎殻會?
./configure && make && make install
孖壓乎頁算匯嶽圭塀議扮昨阻?低辛參聞喘CheckInstall。万寡喘徭失議峺綜checkinstall栖旗紋make install。凪麿曾倖峺綜隠藻和栖効參念匯劔?咀緩?孖壓宸倖峺綜會双聞喘 CheckInstall延撹阻?
./configure && make && checkinstall
峺綜checkinstall音叙潮範塰佩阻make install?遇拝珊酌霞侭嗤芦廾狛殻嶄議亟荷恬。葎緩?CheckInstall聞喘阻Pancrazio de Mauro 侭亟議殻會Installwatch [3]。壓make install撹孔頼撹岻朔?CheckInstall氏恢伏匯倖Slackware-, Debian- 賜RPM- 芦廾淫?隼朔梓孚罷周淫議潮範塘崔芦廾殻會?旺壓輝念朕村?賜炎彈芦廾淫贋刈朕村?藻和匯倖伏撹議芦廾淫。遇翌,低辛參宥狛俐個延楚PAK_DIR栖俐個隠贋宸倖朕村。宸劔伏撹議芦廾淫芦廾欺凪麿字匂貧遇涙倬嶷仟園咎!!輝隼?珊誼深打罷周淫議屢札卆正來。
CheckInstall旺音峪頁聞喘make install,万珊辛參嚥凪麿芦廾峺綜屢亅距。箭泌?泌惚芦廾峺綜葎setup.sh?椎担芦廾峺綜會双延撹:
./configure && make && checkinstall setup.sh
厘断珊辛參斑CheckInstall揮彭載謹歌方塰佩。泌和凋綜氏?塋硝窠仗瓶探鍔啣諒釱u睾á啣諒鋿黏揃嵶Ł?芦廾僉??Install options?, 重云侃尖僉??Scripting options?, 佚連?塋粧]遑?Info display options?,芦廾淫僉??Package tuning options?,賠茅僉??Cleanup options?才購噐CheckInstall?About CheckInstall?吉。
# checkinstall -h
泌惚CheckInstall揮彭宸乂歌方塰佩?麿氏聞喘宸乂歌方峙栖旗紋塘崔猟周checkinstallrc嶄屢哘議峙。
CheckInstall匆嗤徭失議蕉尫岻侃。万音嬬侃尖床蓑銭俊議殻會?咀葎宸劔Installwatch祥音嬬酌霞欺芦廾狛殻嶄俐個狛猟周阻。悳悶傍栖?嗤曾窃銭俊垂?強蓑議才床蓑議。宸乂銭俊垂宥狛include-峺綜屁栽欺殻會嶄。床蓑銭俊狛議殻會厮将淫根阻侭嗤俶勣議垂猟周?塰佩扮匆祥音俶勣壅繍宸乂垂墮秘坪贋嶄。宸嶽殻會嚥芦廾壓狼由嶄議銭俊垂涙購?咀葎侭僚議銭俊匂?Linker?厮将壓園咎扮委宸乂垂坪崔欺辛峇佩殻會戦阻。
CheckInstall厮将壓寄匯乂議窟佩井議^殻會学 ?(software pools)嶄贋壓載海議扮寂阻?辛參宥狛窟佩井光徭戻工議芦廾圭塀芦廾。低匆辛參壓麼匈[4]貧和墮光嶽圓園咎挫議芦廾淫賜宀栽癖議坿鷹淫。
CheckInstall議芦廾掲械酒汽?峪俶勣載富議化帶!!徽勣撹孔議芦廾CheckInstall低貌窄俶勣 CheckInstall。壓駅勣議make install岻朔?低補秘checkinstall?祥氏貫園咎挫議殻會伏撹栽癖議屈序崙芦廾淫。孖壓?低辛參聞喘低議芦廾淫砿尖殻會栖^孤昌議 ?芦廾賜宀亢墮阻。壓CheckInstall幹秀芦廾淫岻念?低珊誼駅倬指基匯倖購噐殻會芦廾淫砿尖匂議諒籾?旺拝珊勣殊臥屢購佚連議屎鳩來。宸乂佚連繍氏竃孖壓不朔伏撹議芦廾淫議遊何。
和中繍婢幣芦廾checkinstall-1.6.0beta4.tgz議畠狛殻。宸氏芦廾貧CheckInstall、Installwatch才makepak?凪嶄makepak頁makepkg議俐個井。泌惚低斤仟井云議個序湖佶箸?萩歌心Release Notes [5] 才/賜 Changelog [6].
$ tar xzf checkinstall-1.6.0beta4.tgz $ cd checkinstall-1.6.0beta4 checkinstall-1.6.0beta4 $ make [...] checkinstall-1.6.0beta4 $ su Password: checkinstall-1.6.0beta4 # make install [...] checkinstall-1.6.0beta4 # checkinstall checkinstall 1.6.0beta4, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran This software is released under the GNU GPL. 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.0beta4 ] 2 - Name: [ checkinstall ] 3 - Version: [ 1.6.0beta4 ] 4 - Release: [ 1 ] 5 - License: [ GPL ] 6 - Group: [ Applications/System ] 7 - Architecture: [ i386 ] 8 - Source location: [ checkinstall-1.6.0beta4 ] 9 - Alternate source location: [ ] 10 - Provides: [ checkinstall ] 11 - Requires: [ ] Enter a number to change any of them or press ENTER to continue: Installing with make install... ========================= Installation results ========================= [...] ========================= Installation successful ====================== Copying documentation directory... ./ ./NLS_SUPPORT ./README ./FAQ ./TODO ./CREDITS ./INSTALL ./Changelog ./BUGS ./installwatch-0.7.0beta4/ ./installwatch-0.7.0beta4/README ./installwatch-0.7.0beta4/TODO/usr/src/redhat/RPMS/i386/checkinstall-1.6.0beta4-1.i386.rpm ./installwatch-0.7.0beta4/VERSION ./installwatch-0.7.0beta4/INSTALL ./installwatch-0.7.0beta4/CHANGELOG ./installwatch-0.7.0beta4/BUGS ./installwatch-0.7.0beta4/COPYING ./RELNOTES ./COPYING Copying files to the temporary directory...OK Striping ELF binaries and libraries...OK Compressing man pages...OK Building file list...OK Building RPM package...OK NOTE: The package will not be installed Erasing temporary files...OK Writing backup package...OK Deleting temp dir...OK **************************************************************** 頼撹。 仟議芦廾淫隠贋壓 /usr/src/redhat/RPMS/i386/checkinstall-1.6.0beta4-1.i386.rpm 低辛參壓狼由嶄昧扮芦廾万? rpm -i checkinstall-1.6.0beta4-1.i386.rpm **************************************************************** checkinstall-1.6.0beta4 # cd /usr/src/redhat/RPMS/i386/ i386 # rpm -i checkinstall-1.6.0beta4-1.i386.rpm i386 #
Debian 議喘薩辛參聞喘dpkg -i栖芦廾。 Slackware喘薩喘 installpkg辛參器欺揖劔朕議。
聞喘淫砿尖殻會議臥儂囂鞘?低辛參殊臥芦廾淫嶄猟周頁倦頼畠壓殻會垂嶄芝村阻?珊辛參臥心芦廾淫遊何議匯乂駆翌佚連。壓緩?聞喘 RPM 恬葎箭徨?
$ rpm -qi checkinstall
Name : checkinstall Relocations: (not relocatable)
Version : 1.6.0beta4 Vendor : (none)
Release : 1 Build Date : Mo 06 Dez 2004 17:05:45 CET
Install Date: Di 07 Dez 2004 01:41:49 Build Host : deimos.neo5k.lan
Group : Applications/System Source RPM : checkinstall-1.6.0beta4-1.src.rpm
Size : 264621 License : GPL
Signature : (none)
Packager : checkinstall-1.6.0beta4
Summary : CheckInstall installations tracker, version 1.6.0beta4
Description :
CheckInstall installations tracker, version 1.6.0beta4
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.
低辛參宥狛俐個猟周/usr/lib/local/checkinstall/checkinstallrcCheckInstall議潮範塘崔。
勝砿CheckInstall耽肝塰佩脅氏儂諒伏撹採嶽窃侏芦廾淫?苧崘議一隈珊頁返垢俐個/譜崔INSTYPE延楚。心心延楚INSTALL、PAK_DIR才RPM_FLAGS賜宀DPKG_FLAGS匆頁峙誼容呪議。恷朔曾倖延楚塋俯低協吶匯乂辛僉議芦廾炎崗?宥狛俐個PAK_DIR低辛參峺協芦廾淫議贋刈朕村。遇INSTALL斑低畳協頁峪伏撹芦廾淫椿珊頁匯軟繍宸倖淫瀧貧芦廾。
$ cat /usr/lib/local/checkinstall/checkinstallrc
####################################################################
# CheckInstall configuration file #
########################################
####################################################################
# These are default settings for CheckInstall, modify them as you #
# need. Remember that command line switches will override them. #
####################################################################
# Debug level
# 0: No debug
# 1: Keep all temp files except the package's files
# 2: Keep the package's files too
DEBUG=0
# Location of the "installwatch" program
INSTALLWATCH_PREFIX="/usr/local"
INSTALLWATCH=${INSTALLWATCH_PREFIX}/bin/installwatch
# Location of the makepkg program. "makepak" is the default, and is
# included with checkinstall. If you want to use Slackware's native "makepkg"
# then set this to "makepkg"
MAKEPKG=/sbin/makepkg
# makepkg optional flags. These are recommended if running a newer Slackware
# version: "-l y -c n"
MAKEPKG_FLAGS="-l y -c n"
# Is MAKEPKG running interactively? If so, you might want
# to see what it's doing:
SHOW_MAKEPKG=0
# Where will we keep our temp files?
BASE_TMP_DIR=/var/tmp ## Don't set this to /tmp or / !!
# Where to place the installed document files
DOC_DIR=""
# Default architecture type (Leave it empty to allow auto-guessing)
ARCHITECTURE=""
# Default package type. Leave it empty to enable asking everytime
# S : Slackware
# R : RPM
# D : Debian
INSTYPE="R"
# Storage directory for newly created packages
# By default they will be stored at the default
# location defined for the package type
PAK_DIR=""
# RPM optional flags
RPM_FLAGS=" --force --nodeps --replacepkgs "
# dpkg optional flags
DPKG_FLAGS=""
## These are boolean. Set them to 1 or 0
# Interactively show the results of the install command (i.e. "make install")?
# This is useful for interactive installation commands
SHOW_INSTALL=1
# Show Slackware package installation script while it runs? Again, useful if
# it's an interactive script
SHOW_SLACK_INSTALL=0
# Automatic deletion of "doc-pak" upon termination?
DEL_DOCPAK=1
# Automatic deletion of the spec file?
DEL_SPEC=1
# Automatic deletion of "description-pak"?
DEL_DESC=1
# Automatically strip all ELF binaries?
STRIP_ELF=1
# Automatically strip all ELF shared libraries?
# Note: this setting will automatically be set to "0" if STRIP_ELF=0
STRIP_SO_ELF=1
# Automatically search for shared libraries and add them to /etc/ld.so.conf?
# This is experimental and could mess up your dynamic loader configuration.
# Use it only if you know what you are doing.
ADD_SO=0
# Automatically compress all man pages?
COMPRESS_MAN=1
# Set the umask to this value
CKUMASK=0022
# Backup files overwritten or modified by your install command?
BACKUP=1
# Write a doinst.sh file that installs your description (Slackware)?
AUTODOINST=1
# Are we going to use filesystem translation?
TRANSLATE=1
# Reset the owner/group of all files to root.root?
RESET_UIDS=0
# Use the new (8.1+) Slackware description file format?
NEW_SLACK=1
# Comma delimited list of files/directories to be ignored
EXCLUDE=""
# Accept default values for all questions?
ACCEPT_DEFAULT=0
# Use "-U" flag in rpm by default when installing a rpm package
# This tells rpm to (U)pdate the package instead of (i)nstalling it.
RPM_IU=U
# Inspect the file list before creating the package
CK_INSPECT=0
# Review the .spec file before creating a .rpm
REVIEW_SPEC=0
# Review the control file before creating a .deb
REVIEW_CONTROL=0
# Install the package or just create it?
INSTALL=0
CheckInstall頁匯錘單倔議罷周?万嬬聞誼砿尖Linux厚紗圭宴。蒙艶頁壓坿鷹俶勣将械嶷鹸園咎議秤趨和?CheckInstall辛參斑低某坐音篤撒狼由匯崑來議念戻和頼畠議亢墮殻會。総翌?低珊辛參聞喘宸乂園咎挫議芦廾淫岷俊壓凪麿議字匂貧芦廾(遇涙倬嶷仟園咎?)!!輝隼?低誼深打罷周淫議屢札卆正來?音狛?宸壓揖窃議字匂貧匯違旺音頁焚担諒籾。
[1] http://asic-linux.com.mx/~izto/checkinstall/
[Home of CheckInstall]
[2] http://www.gnu.org/software/autoconf/manual/autoconf-2.57/autoconf.html
[GNU Autoconf Online Manual]
賜宀嶄猟議?
http://littleone.go.nease.net/AutoConf.html[AutoConf 嶄猟返過]
[3] http://asic-linux.com.mx/~izto/checkinstall/installwatch.html
[Installwatch]
[4] http://asic-linux.com.mx/~izto/checkinstall/download.php
[CheckInstall Downloads]
[5] http://asic-linux.com.mx/~izto/checkinstall/docs/RELNOTES
[Release Notes]
[6] http://asic-linux.com.mx/~izto/checkinstall/docs/Changelog
[Changelog]
|
麼匈喇LinuxFocus園辞怏略擦
© Mario M. Knopf "some rights reserved" see linuxfocus.org/license/ http://www.LinuxFocus.org |
鍬咎佚連:
|
2004年12月16日, generated by lfparser version 2.51