pkg_info
—
???եȥ????????? package
?ξ?????ɽ???????ץ???????
pkg_info
[-bcdDEfgGijIkLmopPqQrRsvVxX
]
[-e
package]
[-l
prefix]
[-t
template]
-a
| pkg-name ...
pkg_info
[-qQ
]
-W
filename
pkg_info
[-qQ
]
-O
origin
pkg_info
pkg_info
???ޥ??ɤϡ?
pkg_create(1)
?ˤ????ե??????˥ѥå????줿 package (????:
FreeBSD ?? package system
?ˤ??????ѥå????????ؤ??????ˤ???ɽ?????ޤ?)
????
pkg_add(1)
?ˤ??ꤹ?Ǥ˥????ƥ??˥??ȡ??뤵?줿
package ?˴ؤ???
??????ɽ?????뤿?????Ѥ??????ޤ???
?ʲ??Υ??ޥ??ɥ饤?ץ????????????Ƥ??ޤ???
- pkg-name ...
- ???ꤵ?줿 package
??ɽ???????ޤ??????ꤵ?????Τϥ??ȡ????Ѥߤ?
package ??̾??????package
???ۥե??????ؤΥѥ???FTP ??ǽ??
package ?ؤ? URL ?Τ????줫?ˤʤ??ޤ???
package ?ΥС????????? ≥, ≤,
>, <
?黻?Ҥ??Ѥ??ƥޥå????????????Ǥ??ޤ???
?㤨?С? pkg_info
'portupgrade≥20030723' ?ϡ?
portupgrade package ?ΥС???????
20030723 ?ʹߤ˥ޥå????ޤ???
-a
- ???ߥ??ȡ??뤵???Ƥ??뤹?٤Ƥ?
package ??ɽ?????ޤ???
-b
-q
?ޤ??? -Q
?Υե饰??¸?ߤ??Ƥ⡢???Ϥ?
BLOCKSIZE ?Ķ??ѿ??????Ѥ??ޤ???
-v
- ?????ʽ??Ϥ??ڤ??ؤ??ޤ???
-p
- ?? package ?Υ??ȡ????? prefix
??ɽ?????ޤ???
-q
- ???ݡ??ȥإå??Τ褦?ʾ????????Ϥ????ݤ?;ʬ?ʽ??Ϥ?
“??ά” ????
???ξ????Τ߽??Ϥ??ޤ?
(????Ū?˿ͤ??ɤߤ䤹?????ΤǤϤ????ޤ???)??
-Q
- ?嵭Ʊ?? “?Ť?”
?ˤ??ޤ??????ѥå?????̾?դ???ɽ????ɽ?????ޤ???
-c
- ?? package ?? (1 ??)
???????ȥե??????ɤ?ɽ?????ޤ???
-d
- ?? package
??Ĺ???????ե??????ɤ?ɽ?????ޤ???
-D
- ?? package
?Υ??ȡ??????å??????ե???????ɽ?????ޤ???
-f
- ?? package ?? packing list instructions ??ɽ?????ޤ???
-g
- ??Ͽ???줿?????å??????˹??פ??ʤ??ե???????ɽ?????ޤ???
-i
- ?⤷?????С??? package
?Υ??ȡ??륹?????ץȤ?ɽ?????ޤ???
-I
- ?? package
?Υ????ǥå????Ԥ?ɽ?????ޤ??????Υ??ץ???????¾??
package
???????????ץ??????????Ƥ?ͥ?褷?ޤ???
-j
- ?⤷?????С??? package ?? requirements
???????ץȤ?ɽ?????ޤ???
-k
- ?⤷?????С??? package
?Υ??ȡ??륹?????ץ?
??ɽ?????ޤ???
-r
- ?? package ????¸???Ƥ??? package
?Υꥹ?Ȥ?ɽ?????ޤ???
-R
- (???ꤷ??) ?? package ??ɬ?פȤ??? package
?Τ????ǡ????ȡ??뤵????
???????ΤΥꥹ?Ȥ?ɽ?????ޤ???
-m
- ?⤷?????С??? package ?? mtree
?ե???????ɽ?????ޤ???
-L
- ?? package
?˴ޤޤ????ե???????ɽ?????ޤ???
?????? packing list
???????ΤȤϰۤʤꡢ
?????????뤹?٤ƤΥե??ѥ?̾??ɽ???????ޤ???
-s
- ?? package
???Υ??ȡ??뤵?줿?ե????????????̤?ɽ?????ޤ???
-o
- package ???????˵?Ͽ???줿 “????”
?ѥ???ɽ?????ޤ??? ???Υѥ??ϡ?
???????줿 package ???顢 FreeBSD
Ports Collection ?ˤ????븵?? port
?ξ?????Ϳ???뤳?Ȥ??տޤ??Ƥ??ޤ???
-G
- ɽ?????? package ???????ˡ? pkg-name
???Υ????륰???֥ѥ?????Ÿ?????ޤ???
(?ǥե????ȤǤ?
pkg_info
?ϡ? pkg-name
???Υ????륰???֥ѥ???????Ÿ?????ޤ?)??
-W
- ???ꤷ?? filename
???????Ф??ơ????줬°???? package
??ɽ?????ޤ???
?ե????뤬???ߤΥǥ??쥯?ȥ???̵???????ǡ????Хѥ??????Ǥʤ????硢
which(1)
?????Ѥ???
PATH
???????????ޤ?
-O
- ???ꤵ?줿 origin
???????Ф??????????Ȥ??ƻ??????ѥå???????ɽ?????ޤ???
-x
- pkg-name ??????ɽ???Ȥ??ư?????
̾????????ɽ????Ŭ?礹?? package
?ξ????Τߤ?ɽ?????ޤ???
ʣ????????ɽ??????????ǽ?Ǥ???
???ξ??硢?ꥹ?Ⱦ??ʤ??Ȥ??ҤȤĤ?????ɽ????Ŭ?礹??
package ??
pkg_info
??ɽ?????ޤ???
-X
-x
??Ʊ?ͤǤ????? pkg-name
????ĥ????ɽ???Ȥ??ư????ޤ???
-e
pkg-name
- pkg-name ?Ǽ??????? package
?????ߥ??ȡ??뤵???Ƥ????????ˤ? 0
?? ?֤????????Ǥʤ????? 1 ???֤??ޤ???
???Υ??ץ??????ˤ??ꡢ???????ץȤ???
(?????餯ɬ???Բķ???) ¾?? package
??¸?ߤ???ñ?˳?ǧ???뤳?Ȥ???ǽ?ˤʤ??ޤ???
-E
- ?ޥå????? package ̾?Τ?ɽ?????ޤ???
???Υ??ץ??????ϡ?¾?Τ??٤Ƥ?
package ???????ץ???????????ͥ?褵???ޤ??? ??????
package ?˥ޥå??????? 0
???֤????????Ǥʤ??????? 1 ???֤??ޤ???
-l
str
- ?? information category header (
-q
??)
?????? str ???ղä??ޤ???
?????????衢package ?˴ؤ???¿???? information
fields ?????٤?
?????????????Τ??ä????ˤʤä????ϤǺ??𤷤????ʤ????Ȥ???
?ե????ȥ????ɥץ????????Τ????ˤ????ޤ???
???Υ??ץ??????dz? field
????Ƭ?????̤?ʸ???????դ??ä??뤳?Ȥ?
?Ǥ??ޤ???
-t
template
- “???Ⱦ???” ???????????ݤˡ?
mktemp(3)
?ؤ????ϤȤ??? template
???Ѥ??ޤ???
?????ϥǥե????ȤǤ?
/tmp/instmp.XXXXXX
?Ȥ???ʸ?????Ǥ????? /tmp
?ǥ??쥯?ȥ??????̤????¤????Ƥ????褦?ʾ????Ǥ?
?ѹ?????ɬ?פ????뤫?⤷???ޤ?????
mktemp(3)
?????դ? ID ???Ѥ??뤿????ɬ?פ? `X'
??ʸ?????Ĥ??Ĥ??Ƥ???
???Ȥ?˺???ʤ??Ǥ?????????
??: pkg_info
?ϳ?
package ?????ȤƤ⾮???ʾ???
???Ф??ʤ??Τǡ??ºݤˤϤ??Υ??ץ???????ɬ?פ????ޤ?????
???줵?????ˤ??????˾????? /tmp
?Ǥʤ????Фʤ??ʤ??Ǥ??礦??
-V
- packing list
?νΥС????????ֹ???ɽ?????ޤ???
-P
- package
?ġ????Υ??ӥ??????ֹ???ɽ?????ޤ???
package
?ξ????ϡ????ޥ??ɥ饤?????ꤵ?줿
package ?Υե?????̾????
/var/db/pkg/⟨pkg-name⟩
?ˤ??뤹?Ǥ˥??ȡ??뤵?줿
package ?ξ??????Ф????ޤ???
BLOCKSIZE
- ?Ķ??ѿ?
BLOCKSIZE
?????ꤵ???Ƥ??????硢?֥??å????Ϥ???ñ?̤?ɽ???????ޤ???
PKG_TMPDIR
pkg_info
???????ѥե????????????????ǥ??쥯?ȥ??????ꤷ?ޤ???
?????ѿ??????ꤵ???Ƥ??ʤ????硢
TMPDIR
???Ѥ??????ޤ???ξ???Ȥ????ꤵ???Ƥ??ʤ????硢
?Ȥ߹??ߤΥǥե????ȥǥ??쥯?ȥ꤬?Ѥ??????ޤ???
PKG_DBDIR
- ???ȡ??뤵?줿 package
?ˤĤ??Ƥ?????Ū?ʥǡ????١????ΰ??֤????ꤷ?ޤ???
- /var/tmp
- ?Ķ??ѿ?
PKG_TMPDIR
,
TMPDIR
???Ȥ??????ꤵ???Ƥ??ʤ????硢?⤷???Ϥ??????Υǥ??쥯?ȥ??ζ????ΰ褬
??ʬ?Ǥʤ????????Ѥ??????ޤ???
- /tmp
- /var/tmp
??¸?ߤ??ʤ???????ʬ?ʶ????ΰ????????ʤ??????ˡ????????????Ȥ???
?Ѥ??????ޤ???
- /usr/tmp
- /tmp
??Ŭ?ڤǤʤ??????κǸ??????????Ǥ???
- /var/db/pkg
- ???ȡ??뤵?줿 package
?ˤĤ??ƤΥǡ????١????Υǥե????Ȥ?
???֤Ǥ???
John Kohl ⟨jtk@rational.com⟩,
Oliver Eikemeier ⟨eik@FreeBSD.org⟩