pkg_delete
—
???ȡ??뤵???Ƥ??륽?եȥ?????????
package ???????????ץ???????
pkg_delete
[-dDfGinrvxX
]
[-p
prefix]
pkg-name ... pkg_delete
-a
[flags]
pkg_delete
???ޥ??ɤϡ?
pkg_add(1)
???ޥ??ɤˤ??????˥??ȡ??뤵???Ƥ???
package (????: FreeBSD ?? package system
?ˤ??????ѥå????????ؤ??????ˤ???ɽ?????ޤ?)
?????????뤿???? ?Ѥ??????ޤ???
pkg_delete
???ޥ??ɤ?
package
?ե??????ˤ????????륹?????ץȤ??ץ?????????
?¹Ԥ??뤳?Ȥ??????Τǡ????ʤ??Υ????ƥ??ϡ??????????ۥե???????
?????˰??ͤ????? “?ȥ?????????”
??¾?ι?̯?ʹ????ʤɤ???????
??ǽ?????????ޤ???
package
?ե?????????????ʪ??ǽ?Ϥȿȸ?????ǧ?????Ȥ褤?Ǥ??礦??
?????ʤ????????Τ????ˤϡ?package
??Ͽ?ǥ??쥯?ȥ?
(/var/db/pkg/<pkg-name>/)
?ˤ??뤹?٤Ƥ? package
?????ե?????????ǧ???ޤ??? +INSTALL, +POST-INSTALL,
+DEINSTALL, +POST-DEINSTALL, +REQUIRE, +MTREE_DIRS
?γƥե??????ˤ?
?ä????դ?ʧ????+CONTENTS ?ե???????
@cwd
, @mode
(setuid
???????å?), @dirrm
,
@exec
, @unexec
?ǥ??쥯?ƥ??֤?Ĵ?٤Ƥ?????????
???ȡ??뤵???Ƥ??? package
?????ե???????Ĵ?٤??Τˤ?
pkg_info(1)
???ޥ??ɤ??Ȥ??ޤ???
?ʲ??Υ??ޥ??ɥ饤?ץ????????????Ƥ??ޤ?:
- pkg-name ...
- ???ꤵ?줿 package
?????ȡ??뤵???ޤ???
-a
- ̵?????ˡ????ߥ??ȡ????Ѥ? package
?٤ƺ??????ޤ???
-i
- ?? package ?κ??????ˡ???ǧ???????ޤ???
?????ϡ?ɸ?????ϥǥХ?????ü?????ɤ????˴ط??????ޤ?????
-v
- ?????ʽ??Ϥ??ڤ??ؤ??ޤ???
-D
- package
?˥??ȡ????ѥ??????ץȤ?¸?ߤ??Ƥ⡢???????¹Ԥ??ޤ?????
-n
- ?ºݤˤϥ??ȡ????ϹԤ鷺?????ȡ??뤷???????˼¹Ԥ??????Ǥ?????
???ƥåפ?ɽ?????ޤ???
-p
prefix
- ???ȡ??뤵???Ƥ??? package
??????Ū?˥ǥ??쥯?ȥ??????ꤷ?Ƥ??ʤ?
?????ˡ??????????ե??????????? prefix
???ǥ??쥯?ȥ??Ȥ????դ??ä??ޤ???
?ۤȤ??ɤ? package
?Ǥϡ????Υǥ??쥯?ȥ???
pkg_add(1)
?ˤ??äƥ??ȡ??뤵?줿?????˼?ưŪ?????ꤵ???ޤ???
-d
- ?ե??????????ˤ????????????Υǥ??쥯?ȥ??????????ޤ???
?ǥե????ȤǤϡ?package
?????ư?????????Ū?????줿
?ե?????/?ǥ??쥯?ȥ?
(?̾??Υե?????/?ǥ??쥯?ȥ꤫
@dirrm
?ǥ??쥯?ȥ???ȼ?ä?????)
?Τߤ????ȡ??????˺????????ޤ???
???Υ??ץ??????ˤ??? pkg_delete
?? package
?????????뤳?Ȥˤ????????????ǥ??쥯?ȥ????????????褦??
?ʤ??ޤ???
-f
- ??¸?ط?????Ͽ?????Ƥ????ꡢ???ȡ??륹?????ץȤ?
require
???????ץȤ????Ԥ????????Ǥ⡢????Ū??
package ?????????ޤ???
-G
- ?????оݤ? package ?????????ˡ?
pkg-name
???Υ????륰???֥ѥ???????Ÿ???????ߤޤ???
(?ǥե????ȤǤϡ?
pkg_delete
?? pkg-name
???Υ????륰???֥ѥ?????????ưŪ??Ÿ?????ޤ?)??
-x
- pkg-name
??????ɽ???Ȥ??ư?????̾????????????ɽ???˥ޥå???????
package ?????????ޤ???
ʣ????????ɽ??????????ǽ?Ǥ?????
???ξ??硢?ꥹ?????ξ??ʤ??Ȥ? 1
?Ĥ?????ɽ???˥ޥå??????? package ??
?????????ޤ???
-X
-x
??Ʊ?ͤǤ????? pkg-name
????ĥ????ɽ???Ȥ??ư????ޤ???
-r
- ?Ƶ?Ū?ʺ????? ???ꤷ?? package
?˲ä????????˰?¸???? package
???ޤ????????ޤ???
pkg_delete
?桼?ƥ????ƥ???̾?????̤???Ư???ޤ???
pkg_delete
??
/var/db/pkg/<pkg-name>
?˵?Ͽ???줿???ȡ????Ѥߤ? package
???????å????? package ?????Ƥ??????????Ǹ??? package
?ε?Ͽ?????????ޤ??? ?Ķ??ѿ?
PKG_DBDIR
?????ꤵ???Ƥ????????ˤϡ??????ѥ?
/var/db/pkg/
?ˤ??줬ͥ?褷?ޤ???
???? package
??¾?Υ??ȡ????Ѥߤ? package
????ɬ?פȤ????Ƥ??????硢
pkg_delete
?Ϥ??????ΰ?¸???Ƥ??? package
?ΰ?????ɽ??????package ?κ????? ?Ԥ??ޤ???
(?????? -f
???ץ??????ꤵ?줿??????????)??
package ?? require ?ե?????(
pkg_create(1)
??)???ޤ??Ǥ??????硢?ޤ????Υե????????ʲ??ΰ??????դ??Ƽ¹Ԥ???
???ȡ??????Ȥ?³?????٤????ɤ??????Τ????ޤ?:
require
<pkg-name> DEINSTALL
(?????? pkg-name ???????Ȥ??Ƥ??? package
??̾???Ǥ??ꡢ DEINSTALL
?Ϥ??줬???ȡ????Ǥ??뤳?Ȥ???????ɤǤ?)
??λ???ơ??????? 0 ?ʳ??ξ????ˤϡ?
-f
???ץ??????ꤵ???Ƥ??ʤ??¤ꥢ?ȡ????????Ǥ??ޤ???
package ?? deinstall
???????ץȤ??ޤޤ??Ƥ??????硢
???Υ??????ץȤϥե????뤬?????????????˼¹Ԥ????ޤ???
pkg_delete
?ϥ??ꥸ?ʥ??? package
?˴ޤޤ??Ƥ????ե??????????????뤳?Ȥ???
???Τ??ʤ??Τǡ? package
?Υ??ȡ????ˤޤĤ??뻨¿?ʻ????줤???ҤŤ????Τ?
???? deinstall
???????ץȤ???Ǥ?Ǥ???
deinstall
???????ץȤϰʲ??ΰ??????դ??Ƽ¹Ԥ????ޤ?:
script
<pkg-name> DEINSTALL
?????ǡ? pkg-name ???оݤ? package
̾?Ǥ??ꡢ DEINSTALL
?Ϥ??줬???ȡ??????Υե??????Ǥ??뤳?Ȥ???????ɤǤ???
??: ( -k
??????
-K
?Υե饰??
pkg_create(1)
?˻??Ѥ??뤳?Ȥˤ???) package ????????
deinstall ?? post-deinstall
?Υ??????ץȤ??̡???Ϳ?????????????ˤϡ?
DEINSTALL
??????ɤ??о줷?ޤ?????
post-deinstall
???????ץȤ?
package ???Ф???¸?ߤ??????硢
???ե????뤬???????줿 ??
?Ǽ¹Ԥ????ޤ??? package
?Υ??ȡ????˺ݤ??빹?ʤ??١??Ȥ??????Ȥ??ҤŤ???
(???勞??) package
???ȡ???????Ʊ???????ƥ????֤??᤹???Ȥϡ?
???Υ??????ץȤ???Ǥ?Ǥ???
post-deinstall
?ϼ??Τ褦?˸ƤӽФ????ޤ?:
script
<pkg-name>
POST-DEINSTALL
?????? pkg-name ???оݤ? package
̾?Ǥ??ꡢ POST-DEINSTALL
?Ϥ??줬???ȡ??????Υե??????Ǥ??뤳?Ȥ???????ɤǤ???
??: ( -k
??????
-K
?Υե饰??
pkg_create(1)
?˻??Ѥ??뤳?Ȥˤ???) package ????????
deinstall ?? post-deinstall
?Υ??????ץȤ??̡???Ϳ?????????????ˤϡ?
POST-DEINSTALL
??????ɤ??о줷?ޤ?????
POST-DEINSTALL ??????
PRE-DEINSTALL
?Υ?????ɤ??Ϥ??طʤˤϡ?
???ȡ????Ⱥ????Τ??٤Ƥ????Ȥ??Ǥ???ñ???Υץ???????/???????ץ?
?Ҳ?ǽ?ˤ??뤳?Ȥ??????ޤ???
???????ʤ??顢??????ˡ?ϥ????ƥʥ????ʤ?????
???ȡ??뤪???ӥ??ȡ????γƶ??̤??̡??Υ??????ץȤ???????ˡ
?ˤϵڤФʤ????Ȥ????и??ˤ???ʬ?????ޤ?????
???٤ƤΥ??????ץȤϴĶ??ѿ?
PKG_PREFIX
?˥??ȡ???????
prefix
?????ꤵ?줿???֤Ǽ¹Ԥ????ޤ?
(?嵭?? -p
???ץ???????)??
???Τ??Ȥˤ??ꡢpackage ?κ??Ԥ?
pkg_delete
?? pkg_add
??
-p
?ե饰?ˤ??? package
?????ȡ??뤵?????ǥ??쥯?ȥ꤬
?ѹ??????Ƥ⡢???????Ȥդ??ޤ????????ץȤ????Ȥ???ǽ?ˤʤ??ޤ???
?Ķ??ѿ? PKG_DBDIR
?ϡ????ȡ????Ѥ? package
?????إǡ????١????????ꤷ?ޤ???
- /var/db/pkg
- ???ȡ????Ѥ? package
?Υǡ????١????Υǥե????Ȥΰ??֡?
John Kohl ⟨jtk@rational.com⟩,
Oliver Eikemeier ⟨eik@FreeBSD.org⟩