|
Á¦ ¸ñ : ports·Î ¼³Ä¡ÇÑ ÇÁ·Î±×·¥À» ÆÐÅ°Áö·Î ¸¸µé±â(FreeBSD)
ÀÛ¼ºÀÚ : ÁÁÀºÁøÈ£(truefeel, http://coffeenix.net/ )
ÀÛ¼ºÀÏ : 2010.2.19(±Ý)
1. ¼³Ä¡ ÆÐÅ°Áö Á¤º¸ º¸±â¿Í ÆÐÅ°Áö ÆÄÀÏ ¸¸µé±â
¾ÆÁÖ ±âº»ÀûÀÎ À̾߱⠺ÎÅÍ ½ÃÀÛÇÏ°Ú´Ù. FreeBSDÀ¯Àú¶ó¸é ¸ð¸£Áö ¾ÊÀ» °ÍÀÌ´Ù.
FreeBSD¿¡¼ ¼³Ä¡µÈ ÆÐÅ°Áö ¸ñ·ÏÀ» º¼ ¶§ pkg_info¸í·ÉÀ¸·Î È®ÀÎÇÑ´Ù.
|
# pkg_info
apache-2.2.14_5 Version 2.2.x of Apache web server with prefork MPM.
autoconf-2.62 Automatically configure source code on many Un*x platforms
... »ý·« ...
| |
±×¸®°í, ¼³Ä¡µÈ ÆÐÅ°Áö¸¦ ÆÐÅ°Áö ÆÄÀÏ(.tbz)·Î ¸¸µé ¶§´Â pkg_create ¸í·ÉÀ¸·Î ¸¸µç´Ù.
|
# pkg_create -b apache-2.2.14_5
# ls
apache-2.2.14_5.tbz
| |
2. ¼³Ä¡µÈ ÆÐÅ°Áö Áß¿¡ ÀÇÁ¸ÀûÀÎ °Í±îÁö ¸ðµÎ ÆÐÅ°Áö ÆÄÀÏ·Î ¸¸µé±â
ÁöÁ¤ÇÑ ÆÐÅ°Áö°¡ ÀÇÁ¸ÇÏ°í ÀÖ´Â ÆÐÅ°Áö(Depends on)µé±îÁö ¸ðµÎ ÆÐÅ°Áö ÆÄÀÏ·Î ¸¸µå·Á¸é ¾î¶»°Ô ÇؾßÇÒ±î?
man page¿¡ ³ª¿Í ÀÖ´Â ´ÙÀ½ ¿É¼ÇµéÀÌ ´äÀ» ÁØ´Ù.
|
-b, --backup pkg-name
Create package file from a locally installed package named
pkg-name. If the pkg-filename is not specified, then resulting
archive will be created in the current directory and named
pkg-name with an appropriate extraction suffix applied.
-R, --recursive
When creating package file from a locally installed package also
create package files for all packages required by pkg-name.
Resulting archive(s) will be created in the current directory and
named using name of the respective package with appropriate
extraction suffix applied.
-x, --regex
Use basic regular expressions for pkg-name.
| |
À§ ¿É¼ÇÀ» Á¶ÇÕÇÏ¿© pkg_create¸¸ ÇØÁÖ¸é µÈ´Ù. ÆÐÅ°Áö ÆÄÀÏ »ý¼º »óȲÀ» º¸·Á¸é -v ¿É¼Ç±îÁö ³Ö¾îÁÖ¸é µÈ´Ù.
|
# pkg_create -Rxb ÆÐÅ°Áö¸í
| |
- ÁöÁ¤ÇÑ ÆÐÅ°Áö°¡ ÀÇÁ¸ÇÏ°í ÀÖ´Â ÆÐÅ°Áö ¸ñ·Ï(Depends on)À» º¼ ¶§ : pkg_info -r ¼³Ä¡µÈ_ÆÐÅ°Áö¸í
- ÁöÁ¤ÇÑ ÆÐÅ°Áö¸¦ ÇÊ¿ä·Î ÇÏ´Â ÆÐÅ°Áö ¸ñ·Ï(Required by)À» º¼ ¶§ : pkg_info -R ¼³Ä¡µÈ_ÆÐÅ°Áö¸í
|
# pkg_info -r apache-2.2.14_5
Information for apache-2.2.14_5:
Depends on:
Dependency: expat-2.0.1_1
Dependency: perl-5.10.1
Dependency: pcre-8.00
Dependency: libiconv-1.13.1_1
# pkg_create -Rvxb apache
Creating package apache
Creating bzip'd tar ball in '/home/cnx/apache-2.2.14_5.tbz'
Creating package expat-2.0.1_1
Creating bzip'd tar ball in '/home/cnx/expat-2.0.1_1.tbz'
Creating package perl-5.10.1
Creating bzip'd tar ball in '/home/cnx/perl-5.10.1.tbz'
Creating package pcre-8.00
Creating bzip'd tar ball in '/home/cnx/pcre-8.00.tbz'
Creating package libiconv-1.13.1_1
Creating bzip'd tar ball in '/home/cnx/libiconv-1.13.1_1.tbz'
| |
3. Âü°íÀÚ·á
- "make package" and dependencies
http://forums.freebsd.org/showthread.php?t=5052
- pkg_info, pkg_create man page
|