18.2. FreeBSD Update

´ó¹Æ: Tom Rhodes. ¥Ù¡¼¥¹¤È¤Ê¤Ã¤¿¥Î¡¼¥È¤ÎÄó¶¡: Colin Percival.

¥»¥­¥å¥ê¥Æ¥£¥Ñ¥Ã¥Á¤òŬÍѤ¹¤ë¤³¤È¤Ï¡¢¥³¥ó¥Ô¥å¡¼¥¿¥½¥Õ¥È¥¦¥§¥¢¡¢ Æä˥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤ò´ÉÍý¤¹¤ë¾å¤Ç½ÅÍפÊÌò³ä¤ò²Ì¤¿¤·¤Þ¤¹¡£ ¤·¤«¤·¤Ê¤¬¤é¡¢FreeBSD ¤Ë¤ª¤¤¤Æ¤Ï¡¢ ¤³¤Î¥×¥í¥»¥¹¤Ï´Êñ¤Ê¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£ ¥½¡¼¥¹¥³¡¼¥É¤Ë¥Ñ¥Ã¥Á¤òÅö¤Æ¡¢¥³¡¼¥É¤«¤é¥Ð¥¤¥Ê¥ê¤òºÆ¹½ÃÛ¤·¡¢ ¥Ð¥¤¥Ê¥ê¤òºÆ¤Ó¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤·¤¿¡£

¸½ºß¤Ç¤Ï FreeBSD ¤Ë freebsd-update ¤È¸Æ¤Ð¤ì¤ë¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤¬Äɲ䵤졢¾õ¶·¤ÏÊѤï¤ê¤Þ¤·¤¿¡£ ¤³¤Î¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï 2 ¤Ä¤Îµ¡Ç½¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£ Âè°ì¤Ë¡¢FreeBSD ¥Ù¡¼¥¹¥·¥¹¥Æ¥à¤Î¥Ó¥ë¥É¤ä¥¤¥ó¥¹¥È¡¼¥ë¤ò¹Ô¤¦¤³¤È¤Ê¤¯¡¢ ¥Ð¥¤¥Ê¥ê¤Ë¤è¤Ã¤Æ¥»¥­¥å¥ê¥Æ¥£¤ª¤è¤Ó eratta ¥¢¥Ã¥×¥Ç¡¼¥È¤Ç¤­¤Þ¤¹¡£ ÂèÆó¤Ë¡¢¤³¤Î¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¥Þ¥¤¥Ê¡¼¤ª¤è¤Ó¥á¥¸¥ã¡¼¥ê¥ê¡¼¥¹¤Î¥¢¥Ã¥×¥°¥ì¡¼¥É¤ËÂбþ¤·¤Æ¤¤¤Þ¤¹¡£

注意: ¥Ð¥¤¥Ê¥ê¥¢¥Ã¥×¥Ç¡¼¥È¤Ï¡¢ ¥»¥­¥å¥ê¥Æ¥£¥Á¡¼¥à¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤È¥ê¥ê¡¼¥¹¤ÇÍøÍѤǤ­¤Þ¤¹¡£ ¿·¤·¤¤¥ê¥ê¡¼¥¹¤Ë¥¢¥Ã¥×¥Ç¡¼¥È¤¹¤ëÁ°¤Ë¡¢¸½ºß¤Î¥ê¥ê¡¼¥¹¤Î¥¢¥Ê¥¦¥ó¥¹¤ËÌܤòÄ̤·¡¢ ¥¢¥Ã¥×¥Ç¡¼¥È¤·¤è¤¦¤È¤·¤Æ¤¤¤ë¥ê¥ê¡¼¥¹¤ËÂФ·¤Æ½ÅÍפʾðÊ󤬤ʤ¤¤«¤É¤¦¤«¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤ì¤é¤Î¥¢¥Ê¥¦¥ó¥¹¤Ï http://www.FreeBSD.org/ja/releases/ ¤Ç³Îǧ¤Ç¤­¤Þ¤¹¡£

¤â¤· crontab ¤ÎÃæ¤Ë freebsd-update ¤Îµ¡Ç½¤¬´Þ¤Þ¤ì¤Æ¤¤¤¿¤é¡¢ °Ê²¼¤Îºî¶È¤ò¹Ô¤¦¤Þ¤Ç¤Ï̵¸ú¤Ë¤·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£

18.2.1. ÀßÄê¥Õ¥¡¥¤¥ë

ÀßÄê¥Õ¥¡¥¤¥ë /etc/freebsd-update.conf ¤ò¥Ç¥Õ¥©¥ë¥È¤«¤é¤­¤áºÙ¤«¤¯Ä´À°¤·¤Æ¡¢ ¥¢¥Ã¥×¥Ç¡¼¥È¥×¥í¥»¥¹¤òÀ©¸æ¤¹¤ë¥æ¡¼¥¶¤â¤¤¤Þ¤¹¡£ ¤³¤Îºî¶È¤ÏÎɤ¯Ê¸½ñ²½¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢ °Ê²¼¤Î¤¤¤¯¤Ä¤«¤Î¹àÌܤˤĤ¤¤Æ¤ÏÀâÌÀ¤¬É¬ÍפǤ·¤ç¤¦¡£

# Components of the base system which should be kept updated.
Components src world kernel

¤³¤Î¥Ñ¥é¥á¡¼¥¿¤Ï¡¢FreeBSD ¤Î¤É¤ÎÉôʬ¤òºÇ¿·¤Ë°Ý»ý¤¹¤ë¤«¤òÀßÄꤷ¤Þ¤¹¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥½¡¼¥¹¥³¡¼¥É¡¢¥Ù¡¼¥¹¥·¥¹¥Æ¥àÁ´ÂΡ¢¤½¤·¤Æ¥«¡¼¥Í¥ë¤ò¥¢¥Ã¥×¥Ç¡¼¥È¤·¤Þ¤¹¡£ Components ¤ËÀßÄê¤Ç¤­¤ë¹àÌܤϡ¢¥¤¥ó¥¹¥È¡¼¥ë»þ¤ËÁªÂò¤Ç¤­¤ë¤â¤Î¤ÈƱ¤¸¤Ç¤¹¡£ ¤¿¤È¤¨¤Ð¡¢¤³¤³¤Ç world/games ¤òÄɲ乤ë¤È¡¢ game ¤Ë¥Ñ¥Ã¥Á¤¬Åö¤¿¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ src/bin ¤òÄɲ乤ë¤È¡¢ src/bin ¥½¡¼¥¹¥³¡¼¥É¤Î¥¢¥Ã¥×¥Ç¡¼¥È¤òµö²Ä¤·¤Þ¤¹¡£

¤³¤ÎÉôʬ¤Ë¤Ä¤¤¤Æ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¤Þ¤Þ¤Ë¤·¤Æ¤ª¤­¡¢ ¥¢¥Ã¥×¥Ç¡¼¥È¤·¤¿¤¤¹àÌܤò¥æ¡¼¥¶¤¬¥ê¥¹¥È¤Ë²Ã¤¨¤ë·Á¤Ë¤¹¤ë¤Î¤¬¥Ù¥¹¥È¤Ç¤·¤ç¤¦¡£ ¥½¡¼¥¹¥³¡¼¥É¤È¥Ð¥¤¥Ê¥ê¤¬Æ±´ü¤·¤Æ¤¤¤Ê¤¤¤È¡¢ Èá»´¤Ê·ë²Ì¤ò¤â¤¿¤é¤¹²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£

# Paths which start with anything matching an entry in an IgnorePaths
# statement will be ignored.
IgnorePaths

¥¢¥Ã¥×¥Ç¡¼¥È¤ÇÊѹ¹¤µ¤ì¤Æ¤Ï¤¤¤±¤Ê¤¤ÆÃÄê¤Î¥Ç¥£¥ì¥¯¥È¥ê¡¢ /bin ¤ä /sbin Åù¤Î¥Ñ¥¹¤òÄɲ䷤Ƥ¯¤À¤µ¤¤¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¥í¡¼¥«¥ë¤ÎÊѹ¹ÅÀ¤ò freebsd-update ¤¬¾å½ñ¤­¤¹¤ë¤³¤È¤òËɤ°ÌÜŪ¤Ë¤âÍøÍѤǤ­¤Þ¤¹¡£

# Paths which start with anything matching an entry in an UpdateIfUnmodified
# statement will only be updated if the contents of the file have not been
# modified by the user (unless changes are merged; see below).
UpdateIfUnmodified /etc/ /var/ /root/ /.cshrc /.profile

»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ëÀßÄê¥Õ¥¡¥¤¥ë¤ò¡¢ ¥í¡¼¥«¥ë¤ÇÊѹ¹¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Î¤ß¥¢¥Ã¥×¥Ç¡¼¥È¤·¤Þ¤¹¡£ ¥æ¡¼¥¶¤¬¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤òÊѹ¹¤·¤Æ¤¤¤ë¤È¡¢ ¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤Î¼«Æ°¥¢¥Ã¥×¥Ç¡¼¥È¤Ï̵¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£ ¾¤Ë¡¢KeepModifiedMetadata ¤È¤¤¤¦Ê̤Υª¥×¥·¥ç¥ó¤¬Â¸ºß¤·¤Þ¤¹¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢freebsd-update ¤¬¥Þ¡¼¥¸Ãæ¤ËÊѹ¹ÅÀ¤òÊݸ¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£

# When upgrading to a new FreeBSD release, files which match MergeChanges
# will have any local changes merged into the version from the new release.
MergeChanges /etc/ /var/named/etc/

freebsd-update ¤¬¥Þ¡¼¥¸¤¹¤Ù¤­¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Î°ìÍ÷¤Ç¤¹¡£ ¥Õ¥¡¥¤¥ë¤Î¥Þ¡¼¥¸¤Î¥×¥í¥»¥¹¤Ï¡¢ mergemaster(8) ¤ÈƱÍÍ diff(1) ¥Ñ¥Ã¥Á¤ÎϢ³¤Ç¤¹¡£ ¥Þ¡¼¥¸¤ò¾µÇ§¤¹¤ë¤«¡¢¥¨¥Ç¥£¥¿¤òµ¯Æ°¤¹¤ë¤«¡¢ freebsd-update ¤òÃæÃǤ¹¤ë¤«¤É¤¦¤«¤òÁª¤ó¤Ç¤¯¤À¤µ¤¤¡£ ¤â¤·¡¢¿´ÇÛ¤ÊÅÀ¤¬¤¢¤ì¤Ð¡¢ /etc ¤ò¥Ð¥Ã¥¯¥¢¥Ã¥×¤·¤Æ¤«¤é¥Þ¡¼¥¸¤ò¾µÇ§¤·¤Æ¤¯¤À¤µ¤¤¡£ mergemaster ¥³¥Þ¥ó¥É¤Î¾ÜºÙ¤Ê¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï¡¢ 項18.7.11.1 ¤Ç³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£

# Directory in which to store downloaded updates and temporary
# files used by FreeBSD Update.
# WorkDir /var/db/freebsd-update

¤³¤³¤Ç¤Ï¤¹¤Ù¤Æ¤Î¥Ñ¥Ã¥Á¤ä°ì¼¡¥Õ¥¡¥¤¥ë¤òÃÖ¤¯¥Ç¥£¥ì¥¯¥È¥ê¤ò»ØÄꤷ¤Æ¤¤¤Þ¤¹¡£ ¥Ð¡¼¥¸¥ç¥ó¤ò¥¢¥Ã¥×¥°¥ì¡¼¥É¤¹¤ë¤Î¤Ç¤¢¤ì¤Ð¡¢ ¤³¤Î¾ì½ê¤Ë¤Ï¾¯¤Ê¤¯¤È¤â¥®¥¬¥Ð¥¤¥È¤Î¶õ¤­ÍÆÎ̤¬É¬ÍפǤ¹¡£

# When upgrading between releases, should the list of Components be
# read strictly (StrictComponents yes) or merely as a list of components
# which *might* be installed of which FreeBSD Update should figure out
# which actually are installed and upgrade those (StrictComponents no)?
# StrictComponents no

yes ¤ËÀßÄꤹ¤ë¤È¡¢ freebsd-update ¤Ï Components ¤Î¥ê¥¹¥È¤¬´°Á´¤ËÀµ¤·¤¤¤ÈȽÃǤ·¡¢ ¤³¤Î¥ê¥¹¥È°Ê³°¤ÎÊѹ¹ÅÀ¤Ë¤Ä¤¤¤Æ¤Ï¼è¤ê°·¤¤¤Þ¤»¤ó¡£ freebsd-update ¤Ï¡¢¸úΨŪ¤Ë Components ¥ê¥¹¥È¤Ë°¤¹¤ë¥Õ¥¡¥¤¥ë¤ò¥¢¥Ã¥×¥Ç¡¼¥È¤·¤Þ¤¹¡£

18.2.2. ¥»¥­¥å¥ê¥Æ¥£¥Ñ¥Ã¥Á

¥»¥­¥å¥ê¥Æ¥£¥Ñ¥Ã¥Á¤Ï¥ê¥â¡¼¥È¥Þ¥·¥ó¤ËÊݸ¤µ¤ì¤Æ¤ª¤ê¡¢ °Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤È¡¢¥À¥¦¥ó¥í¡¼¥É¤·¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹¡£

# freebsd-update fetch
# freebsd-update install

¥«¡¼¥Í¥ë¤Ë¥Ñ¥Ã¥Á¤¬Åö¤¿¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢¥·¥¹¥Æ¥à¤òºÆµ¯Æ°¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¤¹¤Ù¤Æ¤¬¤¦¤Þ¤¯¼Â¹Ô¤Ç¤­¡¢¥·¥¹¥Æ¥à¤Ë¥Ñ¥Ã¥Á¤¬Åö¤¿¤ë¤è¤¦¤Ç¤¢¤ì¤Ð¡¢ ËèÈդΠcron(8) ¥¸¥ç¥Ö¤È¤·¤Æ freebsd-update ¤ò¼Â¹Ô¤·¤Æ¤â¤è¤¤¤Ç¤·¤ç¤¦¡£ ¤³¤Î¥¿¥¹¥¯¤ò¼Â¹Ô¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤ë¤Ë¤Ï¡¢ °Ê²¼¤Î¥¨¥ó¥È¥ê¤ò /etc/crobntab ¤ËÄɲ䷤Ƥ¯¤À¤µ¤¤¡£

@daily                                  root    freebsd-update cron

¤³¤Î¥¨¥ó¥È¥ê¤Ï¡¢ËèÆü°ìÅÙ freebsd-update ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ò¼Â¹Ô¤¹¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£ ¤³¤Î¤è¤¦¤Ë cron ¤Ëµ­½Ò¤¹¤ë¤È¡¢ freebsd-update ¤Ï¥¢¥Ã¥×¥Ç¡¼¥È¤¬Â¸ºß¤¹¤ë¤È¤­¤À¤±³Îǧ¤·¤Þ¤¹¡£ ¥Ñ¥Ã¥Á¤¬Â¸ºß¤¹¤ë¤È¡¢ ¼«Æ°Åª¤Ë¥í¡¼¥«¥ë¥Ç¥£¥¹¥¯¤Ë¥À¥¦¥ó¥í¡¼¥É¤µ¤ì¤Þ¤¹¤¬¡¢Å¬ÍѤϤµ¤ì¤Þ¤»¤ó¡£ ¥À¥¦¥ó¥í¡¼¥É¤µ¤ì¤¿¥Ñ¥Ã¥Á¤ò¼êÆ°¤Ç¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤¬É¬Íפǡ¢¤³¤Î¤³¤È¤Ï root °¸¤Æ¤Ë¥á¡¼¥ë¤ÇÄÌÃΤµ¤ì¤Þ¤¹¡£

¤¦¤Þ¤¯¹Ô¤«¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢freebsd-update ¤ò°Ê²¼¤Î¤è¤¦¤Ë¼Â¹Ô¤¹¤ë¤È¡¢ºÇ¸å¤ÎÊѹ¹¤Þ¤Ç¥í¡¼¥ë¥Ð¥Ã¥¯¤Ç¤­¤Þ¤¹¡£

# freebsd-update rollback

¥«¡¼¥Í¥ë¤Þ¤¿¤Ï¥«¡¼¥Í¥ë¥â¥¸¥å¡¼¥ë¤¬¥¢¥Ã¥×¥Ç¡¼¥È¤µ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢ ´°Î»¸å¤Ë¥·¥¹¥Æ¥à¤òºÆµ¯Æ°¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤Îºî¶È¤Ë¤è¤Ã¤Æ¡¢FreeBSD ¤¬¥Ð¥¤¥Ê¥ê¤ò¥á¥â¥ê¤ËÆɤ߹þ¤ß¤Þ¤¹¡£

freebsd-update ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤¬¼«Æ°Åª¤Ë¥¢¥Ã¥×¥Ç¡¼¥È¤¹¤ë¥«¡¼¥Í¥ë¤Ï GENERIC ¤Î¤ß¤Ç¤¹¡£ ¥«¥¹¥¿¥à¥«¡¼¥Í¥ë¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢freebsd-update ¤¬Â¾¤ÎÉôʬ¤ò¥¢¥Ã¥×¥Ç¡¼¥È¤·¤¿¸å¡¢ ¥«¡¼¥Í¥ë¤òºÆ¹½ÃÛ¤·¡¢¤â¤¦°ìÅÙ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ GENERIC ¥«¡¼¥Í¥ë¤¬ /boot/GENERIC ¤Ë¸ºß¤¹¤ë¾ì¹ç¤Ë¤Ï¡¢ freebsd-update ¤Ë¤è¤ê (¸½ºß¤Î¥·¥¹¥Æ¥à¤Ç¼Â¹Ô¤µ¤ì¤Æ¤¤¤ë¥«¡¼¥Í¥ë¤Ç¤Ê¤¯¤È¤â) ¥¢¥Ã¥×¥Ç¡¼¥È¤µ¤ì¤Þ¤¹¡£

注意: GENERIC ¥«¡¼¥Í¥ë¤ò¡¢¾ï¤Ë /boot/GENERIC ¤ËÃÖ¤¤¤Æ¤ª¤¯¤³¤È¤ÏÎɤ¤¹Í¤¨¤Ç¤¹¡£ ¤µ¤Þ¤¶¤Þ¤ÊÌäÂê¤ò²ò·è¤¹¤ëºÝ¤ä¡¢ 項18.2.3 ¤ËÀâÌÀ¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤Ë¡¢ freebsd-update ¤òÍѤ¤¤Æ¥Ð¡¼¥¸¥ç¥ó¤ò¥¢¥Ã¥×¥°¥ì¡¼¥É¤¹¤ëºÝ¤Ë½õ¤±¤È¤Ê¤ê¤Þ¤¹¡£

/etc/freebsd-update.conf ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤òÊѹ¹¤·¤Ê¤¤¸Â¤ê¡¢ freebsd-update ¤Ï¡¢ ¾¤Î¹¹¿·¤È¶¦¤Ë¥«¡¼¥Í¥ë¥½¡¼¥¹¤ò¥¢¥Ã¥×¥Ç¡¼¥È¤·¤Þ¤¹¡£ ¿·¤·¤¤¥«¥¹¥¿¥à¥«¡¼¥Í¥ë¤ÎºÆ¹½ÃۤȺƥ¤¥ó¥¹¥È¡¼¥ë¤Ï¡¢ Ä̾ïÄ̤ê¹Ô¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

注意: freebsd-update ¤Ï¡¢ ¾ï¤Ë¥«¡¼¥Í¥ë¤ò¥¢¥Ã¥×¥Ç¡¼¥È¤¹¤ë¤È¤Ï¸Â¤ê¤Þ¤»¤ó¡£ freebsd-update install ¤Ë¤è¤Ã¤Æ¥«¡¼¥Í¥ë¥½¡¼¥¹¤¬Êѹ¹¤µ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢ ¥«¥¹¥¿¥à¥«¡¼¥Í¥ë¤òºÆ¹½ÃÛ¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£ ¤·¤«¤·¤Ê¤¬¤é freebsd-update ¤Ï¡¢ /usr/src/sys/conf/newvers.sh ¥Õ¥¡¥¤¥ë¤ò¾ï¤Ë¥¢¥Ã¥×¥Ç¡¼¥È¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢¸½ºß¤Î¥·¥¹¥Æ¥à¤Î¥Ñ¥Ã¥Á¥ì¥Ù¥ë (uname -r ¤¬ -p ¤Çɽ¼¨¤¹¤ëÈÖ¹æ) ¤ò¼¨¤¹ºÝ¤Ë»²¾È¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤Ç¤¹¡£ ¤½¤Î¤¿¤á¡¢²¿¤âÊѹ¹¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ç¤â¡¢¥«¥¹¥¿¥à¥«¡¼¥Í¥ë¤òºÆ¹½ÃÛ¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢ uname(1) ¤¬¥·¥¹¥Æ¥à¤ÎÀµ³Î¤Ê¥Ñ¥Ã¥Á¥ì¥Ù¥ë¤òÊó¹ð¤¹¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ ³Æ¥·¥¹¥Æ¥à¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥¢¥Ã¥×¥Ç¡¼¥È¤ò¤¹¤Ð¤ä¤¯ÇÄ°®¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ë¤Î¤Ç¡¢ ÆäËÊ£¿ô¤Î¥·¥¹¥Æ¥à¤ò´ÉÍý¤¹¤ë¤È¤­¤Ë½õ¤±¤È¤Ê¤ê¤Þ¤¹¡£

18.2.3. ¥á¥¸¥ã¡¼¤ª¤è¤Ó¥Þ¥¤¥Ê¡¼¥Ð¡¼¥¸¥ç¥ó¤Î¥¢¥Ã¥×¥°¥ì¡¼¥É

FreeBSD ¤Î¥Þ¥¤¥Ê¡¼¥Ð¡¼¥¸¥ç¥ó´Ö¤Î¥¢¥Ã¥×¥°¥ì¡¼¥É¡¢ ¤¿¤È¤¨¤Ð¡¢FreeBSD 9.0 ¤«¤é FreeBSD 9.1 ¤Ø¤Î¥¢¥Ã¥×¥°¥ì¡¼¥É¤Ï¡¢ ¥Þ¥¤¥Ê¡¼¥Ð¡¼¥¸¥ç¥ó ¥¢¥Ã¥×¥°¥ì¡¼¥É¤È¸Æ¤Ð¤ì¤Þ¤¹¡£ Ä̾ï¤Ï¡¢¥Þ¥¤¥Ê¡¼¥Ð¡¼¥¸¥ç¥ó¤Î¥¢¥Ã¥×¥°¥ì¡¼¥É¤ò¹Ô¤Ã¤¿¸å¤Ç¤â¡¢ ¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ÏÌäÂê¤Ê¤¯Æ°¤­¤Þ¤¹¡£

¥á¥¸¥ã¡¼¥Ð¡¼¥¸¥ç¥ó ¥¢¥Ã¥×¥°¥ì¡¼¥É¤Ï¡¢ FreeBSD 8.X ¤«¤é FreeBSD 9.X ¤Ø¤Î¥¢¥Ã¥×¥°¥ì¡¼¥É¤È¤¤¤Ã¤¿¡¢ FreeBSD ¤Î¥á¥¸¥ã¡¼¥Ð¡¼¥¸¥ç¥ó¤¬ÊѤï¤ë¤è¤¦¤Ê¥¢¥Ã¥×¥°¥ì¡¼¥É¤Î¤³¤È¤Ç¤¹¡£ ¥á¥¸¥ã¡¼¥Ð¡¼¥¸¥ç¥ó¤Î¥¢¥Ã¥×¥°¥ì¡¼¥É¤Ç¤Ï¡¢ ¸Å¤¤¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë¤ä¥é¥¤¥Ö¥é¥ê¤¬ºï½ü¤µ¤ì¡¢ ¤³¤ì¤é¤Ë°Í¸¤¹¤ë¿¤¯¤Î¥µ¡¼¥É¥Ñ¡¼¥Æ¥£À½¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ë±Æ¶Á¤òÍ¿¤¨¤ë²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£ ¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î ports ¤òºï½ü¤·¤ÆºÆ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤«¡¢ ¥á¥¸¥ã¡¼¥¢¥Ã¥×¥°¥ì¡¼¥É¸å¡¢ ports-mgmt/portupgrade ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ò»È¤Ã¤Æ¥¢¥Ã¥×¥°¥ì¡¼¥É¤¹¤ë¤³¤È¤¬¿ä¾©¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¥Ö¥ë¡¼¥È¥Õ¥©¡¼¥¹Åª¤ÊºÆ¹½Ãۤϡ¢ °Ê²¼¤Î¥³¥Þ¥ó¥É¤Ë¤è¤ê¹Ô¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

# portupgrade -af

¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¤¹¤Ù¤Æ¤Î ports ¤òŬÀڤ˺ƥ¤¥ó¥¹¥È¡¼¥ë¤·¤è¤¦¤È¤·¤Þ¤¹¡£ BATCH ´Ä¶­ÊÑ¿ô¤ò yes ¤ËÀßÄꤷ¤Æ¤ª¤¯¤È¡¢ ¥¢¥Ã¥×¥Ç¡¼¥È¥×¥í¥»¥¹¤ÎÅÓÃæ¤Î¼ÁÌä¤ËÂФ· yes ¤ÈÅú¤¨¤ë¤è¤¦¤Ë¤Ê¤ë¤Î¤Ç¡¢ ¥Ó¥ë¥É¥×¥í¥»¥¹¤Ç¤Î¼êÆ°Áàºî¤ò¾Êά¤Ç¤­¤Þ¤¹¡£

18.2.3.1. ¥«¥¹¥¿¥à¥«¡¼¥Í¥ë¤Î¼è¤ê°·¤¤

¥«¥¹¥¿¥à¥«¡¼¥Í¥ë¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¥¢¥Ã¥×¥°¥ì¡¼¥É¤Î¥×¥í¥»¥¹¤Ï¡¢ ´öʬʣ»¨¤È¤Ê¤ê¤Þ¤¹¡£ ¥¢¥Ã¥×¥°¥ì¡¼¥É¤Î¼ê½ç¤Ï FreeBSD ¤Î¥Ð¡¼¥¸¥ç¥ó¤Ë¤è¤Ã¤ÆÊѤï¤ê¤Þ¤¹¡£

18.2.3.1.1. FreeBSD 8.X °ÊÁ°¤Î¥·¥¹¥Æ¥à¤Ë¤ª¤±¤ë¥«¥¹¥¿¥à¥«¡¼¥Í¥ë

GENERIC ¥«¡¼¥Í¥ë¤¬ /boot/GENERIC ¤ËÃÖ¤«¤ì¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¤â¤· GENERIC ¥«¡¼¥Í¥ë¤¬¥·¥¹¥Æ¥à¤Ë¸ºß¤·¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢ °Ê²¼¤Î¤É¤ì¤«¤ÎÊýË¡¤ÇÍÑ°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

  • ¤¿¤À°ìÅÙ¤À¤±¥«¥¹¥¿¥à¥«¡¼¥Í¥ë¤ò¹½ÃÛ¤·¤¿¤Î¤Ç¤¢¤ì¤Ð¡¢ /boot/kernel.old ¤Ï GENERIC ¥«¡¼¥Í¥ë¤½¤Î¤â¤Î¤Ç¤¹¡£ ¤¿¤Àñ¤Ë¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î̾Á°¤ò /boot/GENERIC ¤Ø¤ÈÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£

  • ¥³¥ó¥Ô¥å¡¼¥¿¤Ø¤ÎʪÍýŪ¤Ê¥¢¥¯¥»¥¹¤¬²Äǽ¤Ç¤¢¤ì¤Ð¡¢ CD-ROM ¥á¥Ç¥£¥¢¤«¤é GENERIC ¥«¡¼¥Í¥ë¤ò¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤Þ¤¹¡£ ¥¤¥ó¥¹¥È¡¼¥ë¥Ç¥£¥¹¥¯¤òÁÞÆþ¤·¤Æ¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

    # mount /cdrom
    # cd /cdrom/X.Y-RELEASE/kernels
    # ./install.sh GENERIC
    

    ¤³¤³¤Ç X.Y-RELEASE ¤ò¼ÂºÝ¤Î¥ê¥ê¡¼¥¹ÈÖ¹æ¤ËÃÖ¤­´¹¤¨¤Æ¤¯¤À¤µ¤¤¡£ GENERIC ¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Ç /boot/GENERIC ¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Þ¤¹¡£

  • ¾åµ­¤ÎÊýË¡¤¬¤¹¤Ù¤Æ¼ºÇÔ¤¹¤ë¤Î¤Ç¤¢¤ì¤Ð¡¢ GENERIC ¥«¡¼¥Í¥ë¤ò¥½¡¼¥¹¤«¤éºÆ¹½ÃÛ¤·¤Æ¡¢ ¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£

    # cd /usr/src
    # env DESTDIR=/boot/GENERIC make kernel
    # mv /boot/GENERIC/boot/kernel/* /boot/GENERIC
    # rm -rf /boot/GENERIC/boot
    

    freebsd-update ¤Ï¡¢¤³¤Î¥«¡¼¥Í¥ë¤ò GENERIC ¥«¡¼¥Í¥ë¤È¤·¤Æ°·¤¤¤Þ¤¹¡£ GENERIC ¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤Ï¡¢ ¤È¤Ë¤«¤¯Êѹ¹¤·¤Æ¤Ï¤¤¤±¤Þ¤»¤ó¡£ ¤Þ¤¿¡¢ÆÃÊ̤ʥª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Ê¤¤ (/etc/make.conf ¤¬¶õ¤Ç¤¢¤ë¤³¤È¤¬Ë¾¤Þ¤·¤¤) ¤Ç¹½ÃÛ¤·¤Æ¤¯¤À¤µ¤¤¡£

¤³¤Î»þÅÀ¤Ç GENERIC ¥«¡¼¥Í¥ë¤ÇºÆµ¯Æ°¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£

18.2.3.1.2. FreeBSD 9.X °Ê¹ß¤Î¥·¥¹¥Æ¥à¤Ë¤ª¤±¤ë¥«¥¹¥¿¥à¥«¡¼¥Í¥ë

  • ¤¿¤À°ìÅÙ¤À¤±¥«¥¹¥¿¥à¥«¡¼¥Í¥ë¤ò¹½ÃÛ¤·¤¿¤Î¤Ç¤¢¤ì¤Ð¡¢ /boot/kernel.old ¤Ï GENERIC ¥«¡¼¥Í¥ë¤½¤Î¤â¤Î¤Ç¤¹¡£ ¤¿¤Àñ¤Ë¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î̾Á°¤ò /boot/kernel ¤Ø¤ÈÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£

  • ¥³¥ó¥Ô¥å¡¼¥¿¤Ø¤ÎʪÍýŪ¤Ê¥¢¥¯¥»¥¹¤¬²Äǽ¤Ç¤¢¤ì¤Ð¡¢ CD-ROM ¥á¥Ç¥£¥¢¤«¤é GENERIC ¥«¡¼¥Í¥ë¤ò¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤Þ¤¹¡£ ¥¤¥ó¥¹¥È¡¼¥ë¥Ç¥£¥¹¥¯¤òÁÞÆþ¤·¤Æ¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

    # mount /cdrom
    # cd /cdrom/usr/freebsd-dist
    # tar -C/ -xvf kernel.txz boot/kernel/kernel
    
  • ¾åµ­¤ÎÊýË¡¤¬¼ºÇÔ¤¹¤ë¤Î¤Ç¤¢¤ì¤Ð¡¢ GENERIC ¥«¡¼¥Í¥ë¤ò¥½¡¼¥¹¤«¤éºÆ¹½ÃÛ¤·¤Æ¡¢ ¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£

    # cd /usr/src
    # make kernel
    

    freebsd-update ¤Ï¡¢¤³¤Î¥«¡¼¥Í¥ë¤ò GENERIC ¥«¡¼¥Í¥ë¤È¤·¤Æ°·¤¤¤Þ¤¹¡£ GENERIC ¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤Ï¡¢ ¤È¤Ë¤«¤¯Êѹ¹¤·¤Æ¤Ï¤¤¤±¤Þ¤»¤ó¡£ ¤Þ¤¿¡¢ÆÃÊ̤ʥª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Ê¤¤ (/etc/make.conf ¤¬¶õ¤Ç¤¢¤ë¤³¤È¤¬Ë¾¤Þ¤·¤¤) ¤Ç¹½ÃÛ¤·¤Æ¤¯¤À¤µ¤¤¡£

¤³¤Î»þÅÀ¤Ç GENERIC ¥«¡¼¥Í¥ë¤ÇºÆµ¯Æ°¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£

18.2.3.2. ¥¢¥Ã¥×¥°¥ì¡¼¥É¤ò¹Ô¤¦

freebsd-update ¤Ë¤è¤ë¥á¥¸¥ã¡¼¡¢¤Þ¤¿¤Ï¥Þ¥¤¥Ê¡¼¥Ð¡¼¥¸¥ç¥ó¤Î¥¢¥Ã¥×¥Ç¡¼¥È¤Ç¤Ï¡¢ ¥ê¥ê¡¼¥¹¥Ð¡¼¥¸¥ç¥ó¤ò¥¿¡¼¥²¥Ã¥È¤Ë¤·¤Æ¼Â¹Ô¤·¤Þ¤¹¡£ ¤¿¤È¤¨¤Ð¡¢FreeBSD 8.1 ¤Ë¥¢¥Ã¥×¥Ç¡¼¥È¤¹¤ë¤Ë¤Ï°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

# freebsd-update -r 8.1-RELEASE upgrade

¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤È¡¢freebsd-update ¤ÏÀßÄê¥Õ¥¡¥¤¥ë¤È¸½ºß¤Î¥·¥¹¥Æ¥à¤òɾ²Á¤·¡¢ ¥·¥¹¥Æ¥à¤ò¥¢¥Ã¥×¥Ç¡¼¥È¤¹¤ë¤¿¤á¤ËɬÍפʾðÊó¤ò¼ý½¸¤·¤Þ¤¹¡£ ²èÌ̤ˤϡ¢¤É¤Î¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬Ç§¼±¤µ¤ì¡¢ ¤É¤Î¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬Ç§¼±¤µ¤ì¤Æ¤¤¤Ê¤¤¤«¤È¤¤¤Ã¤¿¥ê¥¹¥È¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£ ¤¿¤È¤¨¤Ð°Ê²¼¤Î¤è¤¦¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£

Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 8.0-RELEASE from update1.FreeBSD.org... done.
Fetching metadata index... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/smp src/base src/bin src/contrib src/crypto src/etc src/games
src/gnu src/include src/krb5 src/lib src/libexec src/release src/rescue
src/sbin src/secure src/share src/sys src/tools src/ubin src/usbin
world/base world/info world/lib32 world/manpages

The following components of FreeBSD do not seem to be installed:
kernel/generic world/catpages world/dict world/doc world/games
world/proflibs

Does this look reasonable (y/n)? y

¤³¤³¤Ç¡¢freebsd-update ¤Ï¥¢¥Ã¥×¥°¥ì¡¼¥É¤ËɬÍפʤ¹¤Ù¤Æ¤Î¥Õ¥¡¥¤¥ë¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤Þ¤¹¡£ ²¿¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¡¢¤É¤Î¤è¤¦¤Ë¿Ê¤à¤«¤È¤¤¤Ã¤¿¼ÁÌä¤ò¤µ¤ì¤ë¤³¤È¤â¤¢¤ê¤Þ¤¹¡£

¥«¥¹¥¿¥à¥«¡¼¥Í¥ë¤ò»È¤Ã¤Æ¤¤¤ë¤È¡¢ ¾åµ­¤Î¥¹¥Æ¥Ã¥×¤Ç°Ê²¼¤Î¤è¤¦¤Ê·Ù¹ð¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£

WARNING: This system is running a "MYKERNEL" kernel, which is not a
kernel configuration distributed as part of FreeBSD 8.0-RELEASE.
This kernel will not be updated: you MUST update the kernel manually
before running "/usr/sbin/freebsd-update install"

¤³¤Î»þÅÀ¤Ç¤Ï¤³¤Î·Ù¹ð¤ò̵»ë¤·¤Æ¤â¤«¤Þ¤¤¤Þ¤»¤ó¡£ ¥¢¥Ã¥×¥Ç¡¼¥È¤µ¤ì¤¿ GENERIC ¥«¡¼¥Í¥ë¤Ï¡¢ ¥¢¥Ã¥×¥°¥ì¡¼¥É¥×¥í¥»¥¹¤ÎÅÓÃæ¤ÇÍøÍѤµ¤ì¤Þ¤¹¡£

¤¹¤Ù¤Æ¤Î¥Ñ¥Ã¥Á¤¬¥í¡¼¥«¥ë¥·¥¹¥Æ¥à¤Ø¥À¥¦¥ó¥í¡¼¥É¤µ¤ì¤¿¤é¡¢ ¼¡¤Ë¥Ñ¥Ã¥Á¤¬Å¬ÍѤµ¤ì¤Þ¤¹¡£ ¤³¤Î¥×¥í¥»¥¹¤Ë¤«¤«¤ë»þ´Ö¤Ï¥³¥ó¥Ô¥å¡¼¥¿¤ÎÀ­Ç½¤È¥ï¡¼¥¯¥í¡¼¥É¤Ë°Í¸¤·¤Þ¤¹¡£ ¤½¤Î¸å¡¢ÀßÄê¥Õ¥¡¥¤¥ë¤¬¥Þ¡¼¥¸¤µ¤ì¤Þ¤¹¡£ ¤³¤Î¥×¥í¥»¥¹¤Ç¤Ï¡¢¥Õ¥¡¥¤¥ë¤ò¥Þ¡¼¥¸¤¹¤ë¤«¡¢ ²èÌ̾å¤Ë¥¨¥Ç¥£¥¿¤òΩ¤Á¾å¤²¤Æ¼êÆ°¤Ç¥Þ¡¼¥¸¤¹¤ë¤«¤ò¿Ò¤Í¤é¤ì¤Þ¤¹¡£ ¥×¥í¥»¥¹¤´¤È¤Ë¡¢¥Þ¡¼¥¸¤ËÀ®¸ù¤·¤¿¾ðÊ󤬥桼¥¶¤Ë¼¨¤µ¤ì¤Þ¤¹¡£ ¥Þ¡¼¥¸¤Ë¼ºÇÔ¤·¤¿¤ê¡¢Ìµ»ë¤·¤¿¾ì¹ç¤Ë¤Ï¡¢¥×¥í¥»¥¹¤¬ÃæÃǤ·¤Þ¤¹¡£ ¥æ¡¼¥¶¤Ë¤è¤Ã¤Æ¤Ï /etc ¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤ò¼è¤ê¡¢ master.passwd ¤ä group ¤Î¤è¤¦¤Ê½ÅÍפʥե¡¥¤¥ë¤ò¸å¤Ç¼êÆ°¤Ç¥Þ¡¼¥¸¤¹¤ëÊý¤â¤¤¤Þ¤¹¡£

注意: ¤¹¤Ù¤Æ¤Î¥Ñ¥Ã¥Á¤ÏÊ̤Υǥ£¥ì¥¯¥È¥ê¤Ç¥Þ¡¼¥¸¤µ¤ì¤Æ¤ª¤ê¡¢ ¤Þ¤À¡¢¥·¥¹¥Æ¥à¤Ë¤ÏÈ¿±Ç¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£ ¤¹¤Ù¤Æ¤Î¥Ñ¥Ã¥Á¤¬Àµ¤·¤¯Å¬ÍѤµ¤ì¡¢ ¤¹¤Ù¤Æ¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤¬¥Þ¡¼¥¸¤µ¤ì¤Æ¥×¥í¥»¥¹¤¬¥¹¥à¡¼¥º¤Ë¿Ê¤ó¤Ç¤¤¤ë»þ¤Ë¤Ï¡¢ ¥æ¡¼¥¶¤Ë¤è¤ëÊѹ¹ÅÀ¤Î¥³¥ß¥Ã¥È¤ÏɬÍפ¢¤ê¤Þ¤»¤ó¡£

¤³¤Î¥×¥í¥»¥¹¤¬½ª¤ï¤Ã¤¿¤é¡¢ °Ê²¼¤Î¥³¥Þ¥ó¥É¤òÍѤ¤¤Æ¡¢¥¢¥Ã¥×¥°¥ì¡¼¥É¤ò¥Ç¥£¥¹¥¯¤ËÈ¿±Ç¤·¤Æ¤¯¤À¤µ¤¤¡£

# freebsd-update install

¥Ñ¥Ã¥Á¤ÏºÇ½é¤Ë¥«¡¼¥Í¥ë¤È¥«¡¼¥Í¥ë¥â¥¸¥å¡¼¥ë¤ËÂФ·¤ÆÅö¤Æ¤é¤ì¤Þ¤¹¡£ ¤³¤³¤Ç¥³¥ó¥Ô¥å¡¼¥¿¤òºÆµ¯Æ°¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¥·¥¹¥Æ¥à¤¬¥«¥¹¥¿¥à¥«¡¼¥Í¥ë¤ò¼Â¹Ô¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢ nextboot(8) ¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ¼¡²ó¤ÎºÆµ¯Æ°»þ¤Î¥«¡¼¥Í¥ë¤ò (¥¢¥Ã¥×¥Ç¡¼¥È¤µ¤ì¤¿) /boot/GENERIC ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£

# nextboot -k GENERIC

警告GENERIC ¥«¡¼¥Í¥ë¤ÇºÆµ¯Æ°¤¹¤ëÁ°¤Ë¡¢ ¥·¥¹¥Æ¥à¤¬Å¬Àڤ˵¯Æ°¤¹¤ë¤¿¤á¤ËɬÍ×¤Ê (¤â¤·¥³¥ó¥Ô¥å¡¼¥¿¤Ë¥ê¥â¡¼¥È¤Ç¥¢¥¯¥»¥¹¤·¤Æ¥¢¥Ã¥×¥Ç¡¼¥È¤·¤Æ¤¤¤¿¤Î¤Ç¤¢¤ì¤Ð¡¢ ¥Í¥Ã¥È¥ï¡¼¥¯Àܳ¤ËɬÍפÊ) ¤¹¤Ù¤Æ¤Î¥É¥é¥¤¥Ð¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¤³¤È¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£ Æäˡ¢¤³¤ì¤Þ¤Ç¤Ë¼Â¹Ô¤·¤Æ¤¤¤¿¥«¥¹¥¿¥à¥«¡¼¥Í¥ë¤¬ (Ä̾ï¤Ï¥«¡¼¥Í¥ë¥â¥¸¥å¡¼¥ë¤È¤·¤ÆÄ󶡤µ¤ì¤Æ¤¤¤ë) ¥Ó¥ë¥ÉºÑ¤ß¤Îµ¡Ç½¤ò´Þ¤ó¤Ç¤¤¤ë¤Î¤Ç¤¢¤ì¤Ð¡¢ ¤³¤ì¤é¤Î¥â¥¸¥å¡¼¥ë¤ò°ì»þŪ¤Ë /boot/loader.conf ¤Îµ¡Ç½¤òÍѤ¤¤Æ¡¢ GENERIC ¤Ø¤ÈÆɤ߹þ¤ó¤Ç¤¯¤À¤µ¤¤¡£ ¥¢¥Ã¥×¥°¥ì¡¼¥É¥×¥í¥»¥¹¤¬½ª¤ï¤ë¤Þ¤Ç¤Ï¡¢ ½ÅÍפǤϤʤ¤¥µ¡¼¥Ó¥¹¤ò̵¸ú¤Ë¤·¡¢ ¥Ç¥£¥¹¥¯¤ä¥Í¥Ã¥È¥ï¡¼¥¯¤Î¥Þ¥¦¥ó¥È¤Ê¤É¤ÏÈò¤±¤Æ¤¯¤À¤µ¤¤¡£

¥¢¥Ã¥×¥Ç¡¼¥È¤µ¤ì¤¿¥«¡¼¥Í¥ë¤Ç¥³¥ó¥Ô¥å¡¼¥¿¤òºÆµ¯Æ°¤·¤Æ¤¯¤À¤µ¤¤¡£

# shutdown -r now

¥·¥¹¥Æ¥à¤¬¥ª¥ó¥é¥¤¥ó¤ËÌá¤Ã¤¿¤é¡¢ freebsd-update ¤òºÆ¤Ó¼Â¹Ô¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¥¢¥Ã¥×¥Ç¡¼¥È¥×¥í¥»¥¹¤Î¾õÂÖ¤ÏÊݸ¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢ freebsd-update ¤ò¼Â¹Ô¤¹¤ë¤È¡¢ºÇ½é¤«¤é¤Ç¤Ï¤Ê¤¯¡¢ ¸Å¤¤¶¦Í­¥é¥¤¥Ö¥é¥ê¤È¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë¤òºï½ü¤¹¤ë¥×¥í¥»¥¹¤«¤é»Ï¤Þ¤ê¤Þ¤¹¡£ ¤³¤Î¥¹¥Æ¡¼¥¸¤ò³¹Ô¤¹¤ë¤Ë¤Ï¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

# freebsd-update install

注意: »ÈÍѤ·¤Æ¤¤¤ë¥é¥¤¥Ö¥é¥ê¤Î¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤ÎÉÕ¤±¤é¤ìÊý¤Ë¤è¤Ã¤Æ¡¢ 3 ¤Ä¤Î¥¤¥ó¥¹¥È¡¼¥ë¥Õ¥§¡¼¥º¤¬ 2 ¤Ä¤Ë¤Ê¤ë¾ì¹ç¤â¤¢¤ê¤Þ¤¹¡£

18.2.3.3. ¥á¥¸¥ã¡¼¥Ð¡¼¥¸¥ç¥ó¥¢¥Ã¥×¥°¥ì¡¼¥É¸å¤Î ports ¤ÎºÆ¹½ÃÛ

¥á¥¸¥ã¡¼¥Ð¡¼¥¸¥ç¥ó¥¢¥Ã¥×¥°¥ì¡¼¥É¤ò¹Ô¤Ã¤¿¸å¤Ç¤Ï¡¢ ¤¹¤Ù¤Æ¤Î¥µ¡¼¥É¥Ñ¡¼¥Æ¥£À½¤Î¥½¥Õ¥È¥¦¥§¥¢¤òºÆ¹½ÃÛ¤·¡¢ ºÆ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ ¤³¤Îºî¶È¤¬É¬ÍפʤΤϡ¢¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥½¥Õ¥È¥¦¥§¥¢¤¬¡¢ ¥¢¥Ã¥×¥°¥ì¡¼¥É¤ÎºÝ¤Ëºï½ü¤µ¤ì¤¿¥é¥¤¥Ö¥é¥ê¤Ë°Í¸¤·¤Æ¤¤¤ë²ÄǽÀ­¤¬¤¢¤ë¤¿¤á¤Ç¤¹¡£ ports-mgmt/portupgrade ¥³¥Þ¥ó¥É¤Ï¡¢¤³¤Î¥×¥í¥»¥¹¤ò¼«Æ°²½¤·¤Þ¤¹¡£ °Ê²¼¤Î¥³¥Þ¥ó¥É¤Ç¡¢¤³¤Î¥×¥í¥»¥¹¤ò³«»Ï¤·¤Þ¤¹¡£

# portupgrade -f ruby
# rm /var/db/pkg/pkgdb.db
# portupgrade -f ruby18-bdb
# rm /var/db/pkg/pkgdb.db /usr/ports/INDEX-*.db
# portupgrade -af

¤³¤Îºî¶È¤Î½ªÎ»¸å¡¢ºÇ¸å¤Ë¤â¤¦°ìÅÙ freebsd-update ¤ò¼Â¹Ô¤¹¤ë¤È¡¢¥¢¥Ã¥×¥°¥ì¡¼¥É¤Î¥×¥í¥»¥¹¤¬´°Î»¤·¤Þ¤¹¡£ °Ê²¼¤Î¥³¥Þ¥ó¥É¤Ç¤¹¤Ù¤Æ¤Î¥¢¥Ã¥×¥°¥ì¡¼¥É¥×¥í¥»¥¹¤Î¤ä¤ê»Ä¤·ºî¶È¤¬¹Ô¤ï¤ì¤Þ¤¹¡£

# freebsd-update install

GENERIC ¥«¡¼¥Í¥ë¤ò°ì»þŪ¤ËÆɤ߹þ¤ó¤Ç¤¤¤¿¤Î¤Ç¤¢¤ì¤Ð¡¢ ¤³¤³¤Ç¡¢Ä̾ï¤ÎÊýË¡¤òÍѤ¤¤Æ¿·¤·¤¤¥«¥¹¥¿¥à¤ò¹½ÃÛ¤·¡¢¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£

¥³¥ó¥Ô¥å¡¼¥¿¤òºÆµ¯Æ°¤·¡¢¿·¤·¤¤ FreeBSD ¤òΩ¤Á¾å¤²¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤ì¤Ç¥¢¥Ã¥×¥°¥ì¡¼¥É¤Î¥×¥í¥»¥¹¤Ï´°Î»¤Ç¤¹¡£

18.2.4. ¥·¥¹¥Æ¥à¤Î¾õÂÖ¤ÎÈæ³Ó

freebsd-update ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤òÍѤ¤¤Æ¡¢ ¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë FreeBSD ¤Î¾õÂ֤ȡ¢ Àµ¤·¤¯Æ°ºî¤¹¤ë¤³¤È¤¬Ê¬¤«¤Ã¤Æ¤¤¤ë¾õÂ֤ȤòÈæ³Ó¤Ç¤­¤Þ¤¹¡£ ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¥·¥¹¥Æ¥à¤Î¥æ¡¼¥Æ¥£¥ê¥Æ¥£¡¢¥é¥¤¥Ö¥é¥ê¡¢ ÀßÄê¥Õ¥¡¥¤¥ë¤òɾ²Á¤·¤Þ¤¹¡£ Èæ³Ó¤ò¹Ô¤¦¤Ë¤Ï¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

# freebsd-update IDS >> outfile.ids

警告¥³¥Þ¥ó¥É¥é¥¤¥ó̾¤Ï IDS ¤Ç¤¹¤¬¡¢ security/snort ¤Î¤è¤¦¤Ê¿¯Æþ¸¡ÃÎ¥·¥¹¥Æ¥à¤ÎÃÖ¤­´¹¤¨¤Ë¤Ê¤ë¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£ freebsd-update ¤Ï¥Ç¡¼¥¿¤ò¥Ç¥£¥¹¥¯¤ËÊݸ¤¹¤ë¤Î¤Ç¡¢ ÌÀ¤é¤«¤ËÉÔÀµ¤ÊÊѹ¹¤¬¹Ô¤ï¤ì¤ë²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£ ¤³¤ÎÉÔÀµ¤ÊÊѹ¹¤Î²ÄǽÀ­¤Ï¡¢ kern.securelevel ¤ÎÀßÄê¤È¡¢ freebsd-update ¤Î¥Ç¡¼¥¿¤ò»ÈÍѤ·¤Ê¤¤¤È¤­¤Ë¡¢ Æɤ߼è¤ê¤Î¤ß¤Îµö²Ä°À­¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ËÃÖ¤¯¤³¤È¤ÇÄ㤯¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¤¬¡¢ ¤è¤ê¤è¤¤²ò·èÊýË¡¤Ï¡¢ DVD ¤Þ¤¿¤Ï°ÂÁ´¤ËÊݸ¤µ¤ì¤Æ¤¤¤ë³°Éô USB ¥Ç¥£¥¹¥¯¤Î¤è¤¦¤Ê°ÂÁ´¤Ê¥Ç¥£¥¹¥¯¤È¥·¥¹¥Æ¥à¤òÈæ³Ó¤¹¤ë¤³¤È¤Ç¤¹¡£

¤³¤ì¤Ç¡¢¥·¥¹¥Æ¥à¤Ï¸¡ºº¤µ¤ì¤Þ¤¹¡£¤½¤·¤Æ¡¢ ¥ê¥ê¡¼¥¹¥Õ¥¡¥¤¥ë¤Î sha256(1) ¥Ï¥Ã¥·¥åÃͤȸ½ºß¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤ÎÃͤ¬¥Õ¥¡¥¤¥ë¤Î°ìÍ÷¤È¶¦¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£ ¤³¤ì¤¬ outfile.ids ¥Õ¥¡¥¤¥ë¤Ë½ÐÎϤ¹¤ëÍýͳ¤Ç¤¹¡£ ÌܤÇÈæ³Ó¤¹¤ë¤Ë¤Ï¤È¤Æ¤âÁ᤯¥¹¥¯¥í¡¼¥ë¤·¡¢ ¥³¥ó¥½¡¼¥ë¥Ð¥Ã¥Õ¥¡¤ò¤¤¤Ã¤Ñ¤¤¤ËËþ¤¿¤·¤Æ¤·¤Þ¤¤¤Þ¤¹¡£

¤³¤ì¤é¤Î¹Ô¤Ï¶Ë¤á¤ÆŤ¤¤Î¤Ç¤¹¤¬¡¢½ÐÎÏ·Á¼°¤Ï´Êñ¤Ë¤¹¤°¤Ë²òÀϤǤ­¤Þ¤¹¡£ ¤¿¤È¤¨¤Ð¡¢¤³¤ì¤é¤Î¥ê¥ê¡¼¥¹¤Ç°Û¤Ê¤Ã¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î¥Õ¥¡¥¤¥ë¤òÃΤꤿ¤¤¤Î¤Ç¤¢¤ì¤Ð¡¢ °Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

# cat outfile.ids | awk '{ print $1 }' | more
/etc/master.passwd
/etc/motd
/etc/passwd
/etc/pf.conf

¾å¤Îɽ¼¨Îã¤Ç¤Ï½ÐÎϤÏÀÚ¤ê¼Î¤Æ¤é¤ì¤Æ¤ª¤ê¡¢ ¼ÂºÝ¤Ë¤Ï¤â¤Ã¤È¿¤¯¤Î¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Þ¤¹¡£ ¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¢±¿ÍÑÃæ¤ËÊѹ¹¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤¬¤¢¤ê¤Þ¤¹¡£ ¤¿¤È¤¨¤Ð¡¢/etc/passwd ¤Ï¥æ¡¼¥¶¤¬¥·¥¹¥Æ¥à¤ËÄɲ䵤ì¤ë¤ÈÊѹ¹¤µ¤ì¤Þ¤¹¡£ ¤Þ¤¿¡¢¥«¡¼¥Í¥ë¥â¥¸¥å¡¼¥ë¤Î¤è¤¦¤Ê¥Õ¥¡¥¤¥ë¤¬¤¢¤ê¤Þ¤¹¡£ ¤³¤ì¤é¤Ï freebsd-update ¤Ë¤è¤ê¥¢¥Ã¥×¥Ç¡¼¥È¤µ¤ì¤Þ¤¹¡£ ¤³¤Î¤è¤¦¤ÊÆÃÊ̤ʥե¡¥¤¥ë¤ä¥Ç¥£¥ì¥¯¥È¥ê¤ò½ü³°¤¹¤ë¤Ë¤Ï¡¢ ¤½¤ì¤é¤ò /etc/freebsd-update.conf ¤Î IDSIgnorePaths ¥ª¥×¥·¥ç¥ó¤ËÄɲ䷤Ƥ¯¤À¤µ¤¤¡£

°ÊÁ°¤ËµÄÏÀ¤·¤¿ÊýË¡¤È¤ÏÊ̤ˡ¢ ¤³¤Î¥·¥¹¥Æ¥à¤òÆþÇ°¤Ê¥¢¥Ã¥×¥°¥ì¡¼¥ÉÊýË¡¤Î°ìÉô¤È¤·¤ÆÍѤ¤¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

ËÜʸ½ñ¡¢¤ª¤è¤Ó¾¤Îʸ½ñ¤Ï ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/ ¤«¤é¥À¥¦¥ó¥í¡¼¥É¤Ç¤­¤Þ¤¹¡£

FreeBSD ¤Ë´Ø¤¹¤ë¼ÁÌ䤬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢¥É¥­¥å¥á¥ó¥È ¤òÆɤó¤À¾å¤Ç <questions@FreeBSD.org> ¤Þ¤Ç (±Ñ¸ì¤Ç) Ï¢Íí¤·¤Æ¤¯¤À¤µ¤¤¡£
ËÜʸ½ñ¤Ë´Ø¤¹¤ë¼ÁÌä¤Ë¤Ä¤¤¤Æ¤Ï¡¢<doc@FreeBSD.org> ¤Þ¤ÇÅŻҥ᡼¥ë¤ò (±Ñ¸ì¤Ç) Á÷¤Ã¤Æ¤¯¤À¤µ¤¤¡£