CentOS6ã«checkinstallãå°å ¥ãã
ruby-2.2.0ã®rpmãä½æãããã£ãã®ã§ãcheckinstallãCentOS6 (64bit)ã«å°å ¥ãã¾ããã
CheckInstallã¨ã¯
ã½ã¼ã¹ã³ã¼ãããmake
, make install
ã«ãã£ã¦ã¤ã³ã¹ãã¼ã«ããã½ããã¦ã§ã¢ã«ã¤ãã¦ãrpmãªã©ã®ããã±ã¼ã¸ã³ã°ãèªåã§è¡ã£ã¦ãããã½ããã§ãã
ããããªãã¨ãspec
ãã¡ã¤ã«ãèªåã§æ¸ããªããã°ãªãããé常ã«æéããããã¾ãããcheckinstall
ã«ãã£ã¦æ¯è¼çç°¡åã«rpmããã±ã¼ã¸ãä½æãããã¨ãã§ãã¾ãã
(ä½æã§ããã®ã¯rpmããã±ã¼ã¸ã ãã§ã¯ããã¾ããã)
å°å ¥æé
åºæ¬çã«ä»¥ä¸ã«å¾ã£ã¦å°å ¥ãã¾ããã
CentOS 6.3 ã« checkinstall ãã¤ã³ã¹ãã¼ã«ãã - ãã³ãã®ã¡ã¢å¸³
CentOSã«checkinstallãgitããã¤ã³ã¹ãã¼ã«ãã - ãªã¼ãã³ã½ã¼ã¹ãããã
æé
åºæ¬çã«rootã¦ã¼ã¶ã§å®è¡ãã¦ãã¾ãã
å¿ è¦ããã±ã¼ã¸å°å ¥
# yum -y install git gcc make gettext rpm-build
CheckInstallå°å ¥åæºå
# cd /var/tmp # git clone http://checkinstall.izto.org/checkinstall.git # cd checkinstall/ # sed -i 's:CONFDIR=$(PREFIX)/lib/checkinstall:CONFDIR=$(PREFIX):g' Makefile # sed -i 's:EXCLUDE="":EXCLUDE="/selinux":g' checkinstallrc-dist # sed -i 's:LIBDIR=$(PREFIX)/lib:LIBDIR=$(PREFIX)/lib64:g' installwatch/Makefile
CheckInstall rpmããã±ã¼ã¸ä½æ
å°å ¥åã«ãCheckInstallèªä½ã®rpmããã±ã¼ã¸ãä½æãã¾ãã
# make # make install # mkdir -p /root/rpmbuild/SOURCES # checkinstall --install=no
éä¸ã§ããããã¨è³ªåãããã¾ãããrpmãæå®ãããããã§ã»ã¨ãã©æ°ã«ããå¿ è¦ã¯ããã¾ããã
checkinstall 1.6.3, Copyright 2010 Felipe Eduardo Sanchez Diaz Duran This software is released under the GNU GPL. The checkinstallrc file was not found at: /usr/local/lib/checkinstall/checkinstallrc Assuming default values. 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.2 ] 2 - Name: [ checkinstall ] 3 - Version: [ 20150207 ] 4 - Release: [ 1 ] 5 - License: [ GPL ] 6 - Group: [ Applications/System ] 7 - Architecture: [ x86_64 ] 8 - Source location: [ checkinstall ] 9 - Alternate source location: [ ] 10 - Requires: [ ] 11 - Provides: [ checkinstall ] Enter a number to change any of them or press ENTER to continue: Installing with make install... ========================= Installation results =========================== ä¸ç¥ Copying files to the temporary directory...OK Stripping ELF binaries...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 ********************************************************************** Done. The new package has been saved to /root/rpmbuild/RPMS/x86_64/checkinstall-20150207-1.x86_64.rpm You can install it in your system anytime using: rpm -i checkinstall-20150207-1.x86_64.rpm **********************************************************************
CheckInstallå°å ¥
# cd /root/rpmbuild/RPMS/x86_64 # rpm -ivh checkinstall-20150207-1.x86_64.rpm Preparing... ########################################### [100%] 1:checkinstall ########################################### [100%]
ã¤ã³ã¹ãã¼ã«ã®ç¢ºèª
# rpm -qi checkinstall Name : checkinstall Relocations: (not relocatable) Version : 20150207 Vendor: (none) Release : 1 Build Date: Sat 07 Feb 2015 08:00:05 PM UTC Install Date: Sat 07 Feb 2015 08:01:58 PM UTC Build Host: localhost Group : Applications/System Source RPM: checkinstall-20150207-1.src.rpm Size : 460811 License: GPL Signature : (none) Packager : checkinstall-1.6.3 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.
ã¤ã³ã¹ãã¼ã«ã§ãã¾ããã
次åãCheckInstallã§ruby-2.2.0ãrpmåãã¦ã¿ã¾ãã