Ȼ/06

Top / Ȼ / 06

OS ΤΥåץǡ

ͥ뤫饷ƥ, ץꥱ˻ޤǰ̤ unix OS Ǥ¿ΥեȥޤޤƤ.
ΥեȥΥƥȼȯӰѤƤ򺣡٤ƥॢåץǡȤλΤʤȥƥǤ뤳ȤԲǽǤ.
֤ȤƤϤ줫͡ daemon 򥤥󥹥ȡ뤹ˤƥ๹ˤĤƳؤǤ褤.

ǡFreeBSD ξ*1ΤåץǡȤˤĤơٰŪʤȤؽ.

FreeBSD ΥС

ޤ FreeBSD ΥС㤤ˤϤɤΤ褦ʰ̣ΤäΤäƤ.

ޤ

 uname -v

ȤƤߤ褦. ȳκΥޥξ֤Ǥ

 FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC

ʤɤɽ. ܤ "6.2-RELEASE" СɽƤ.
uname ޥɤνϤϸŤäꥦĤꤹǽΤǡ /usr/src/sys/conf/newvers.sh REVISION= Ȥʬ BRANCH= ȤʬåƳΤƤ*2.
ΥСϡFreeBSD ˥ݡȤƤ륷ƥෲΤФƤɤΤ褦ʾ֤Ǥ뤫򼨤Ƥ.

"6.2-RELEASE" ΤǽοĤСֹ(revision)ǡǽΰĤ᥸㡼ܤޥʡֹʤɤȸƤФ*3.
ơǸΥϥեʹߤ branch ȸƤФ졤ΥСΡָߤξפɽƤ.
branch ˤϤ褽Τ褦ʤΤ.

current
ȯ桤ˤ뤳Ȥ̣. ǿεǽƤ󤳤ǤϤ뤬ѹϤä夦Х¿. ѥǤʤȤޤޤ. Ƥϡꤷǡפ󤼤㤦*4.
stable
ꤷƻȤǤ뤳Ȥ̣. current Ǥ󤶤줿ǽ礵졤ȥƥݤŪݼ餬Ƥ. Ƥϡꤷǡװ㤦.
release
stable Ǥä˰ȥƥΤտ, ݼ餵줿ΤǡFreeBSD Ѥˤϰ̤ˤǤ侩( stable Ǥ˹ĤĻȤäƤ褤). Ƥ˴طʤŪˡָפƤ.

ޤrelease ǤǤäˡ֥ƥΤ˺Ǿ¤ѹԤäץС㤤⤭ȵҤ.
㤨 "6.2-RELEASE-p6" ʤɤɽ졤 6.2-RELEASE ˥ѥå 6ŬѤ줿СǤ뤳Ȥ̣.
ߤϤοĤˤʤäƤ٤ʤΤϡ FreeBSD Security Information ʤɤߤơƥ(FreeBSD-SA-* Ȥ) Release Ƥ餤Ĥ뤫Ф褤.

branch ΰ㤤(ٻȤäƤߤƤ´Ǥ뤬)ҤΥåץǡˡΰ㤤仡Τǡ褯狼ʤȤΤϤʬޤɤ߿ʤФ褤.

½

OS ΥС򤭤Ĵ١ϿƤ.
ޤߤ FreeBSD release branch κǿΤΤϤĤǤϤĴ٤(FreeBSD Security Information õɤǤߤȤ)

FreeBSD ΥƥॢåץǡȤˡ

FreeBSD ΥƥΥåץǡȤˤϼ˰ʲΤ褦ʤΤ.

ƥ󥹥ȡ
פ˿󥹥ȡ. ¾˼ʤʤȤκǽ. åץǡȤǤޤˤѲ礭ȤϤˡǤϤ. Windows Ȱä FreeBSD ǤեΤۤȤɤƥȥեʤΤǡ Ѥ䤹ΤƤΤʤᤫ.
ץॽ򹹿ѥ뤷ƥƥؤ
Хʥ򤽤ٺ뤿ᤫʤϹ⤤֤֤빽. ޤǤȯ줿(ƥ)ȼбˤϻ¾夳ˡʤä*5. ιˤ "cvsup" ѤΤŪ. ʤߤˡˡϡѥ˻Ȥޥɤ¯ "make world" ȸ*6. ʤäƤ⤳ˡȤʤȺ뤳Ȥ⤢뤫Ȼפ. ܺ٤ ϥɥ֥å 򻲾Ȥ٤.
sysinstall Ѥ
СΥ󥹥ȡǥǵưsysinstall Ѥˡ. ٤ä release ֤ǤȤʤȻפäƤ褤ñdz.
üʥġѤ
release С֤ˤƤϡ/̤ʥåץǡȥġ뤬󶡤뤳Ȥ¿. Ѥ˴ñ˥åץǡȤǽŬоݤ˸ꤵƤ㤤.
freebsd-update Ѥ
ϰΥХʥꥢåץǡȤ release ǤƱ release ǤκǿΥƥѥå夬äΤ˽ƤΤǤ.
Υƥк٤礭Ƥ򤷤ƥǤ. release ǤˤȤʤ*7. ports طޤǤݸƤʤΤǡports طˤĤƤϼʬǹͤʤȤʤ(ܤϸ).

ͤΤˡĤλ򼨤Ƥ.

cvsup ˤĤ

FreeBSD ǥƥƹۤ뤿ɬפʥ򹹿ˤϰŪˤ cvsupȤޥɤȤ.
äƤʤ ports 饵äȥ󥹥ȡ뤷Ƥ(󥹥ȡ뤹ΤGUI פ "cvsup-without-gui" ˤƤ).
㤨СȤ 6.2-Release Ǥκǿ·뤿ʤ /etc/cvsupfile 򼡤Τ褦ˤ*8.

 *default  host=cvsup4.jp.FreeBSD.org
 *default  base=/var/db
 *default  prefix=/usr
 *default  release=cvs delete use-rel-suffix
 
 *default  tag=RELENG_6_2
 src-all
 
 *default tag=.
 ports-all
 doc-all

Ƥơ

 nohup /usr/local/bin/cvsup -g -L 2 /etc/cvsupfile

ʤɤȤС(ξ)ƥॽȡports, ɥȤޤƹ.
⹩פʤǤΤޤ޻ȤȽˤ䤿Ȼ֤Ȥˤʤ(ports οӤ˻֤뤿*9 ).

make world ϤˤĤ

make world μ³ξܺ٤ˤĤƤ ϥɥ֥å 򸫤Ф褤ΤǡݥȤΤ߽񤤤Ƥ.
ԸˤȤäơƥ򥳥ѥ뤷ؤ뤳ˡǰˤʤΤϡ /etc ʲˤեΰѤ*10.
ۤСֲʹƤ뤫ʬäƺȤפȤˤʤ뤬ɤƤ⺤äϡ

  • ʬǿäΤե Ĥ٤Ƽǽ뤳Ȥˤ
  • ʬǿäȤΤʤե

ȤˤǤʤȤʤ.
ʤȽѻ֤Ǥ뤬(Pentium 4, 3GHz ٤θŤ PC ),

  • Ǥ֤Τ buildworld 1Ⱦ
  • ¾Ϥ碌 1ּȤ٤

ȤǤ.

freebsd-update ˤĤ

ޥ˥奢򸫤Ȥ褽4ĤλȤ뤬ưǹԤʤФޤ

 freebsd-update fetch

ȤƥХʥѥåѥåŬѤեįʤȻפä餪

 freebsd-update install

ȤǤ(θǰΰ٤˥֡ȤƤ). ڤ.
ʤߤˡȤ֤ä

 freebsd-update rollback

ǺǤ⿷ŬѤ줿ХʥѥåϤƸ뤳ȤˤʤäƤ.

ʤƥ饤֥Ū˥󥯤Ƥʤɤ ports/package ϡ⹹ʤỌ̇̄ʤ.

½

cvsup 򥤥󥹥ȡ뤻.
ޤϥɥ֥å 򤶤äɤǡ饳ѥ뤷ƥ󥹥ȡ뤹ݤκȤήϤǤ(Ĥ뱩ܤˤʤ).

FreeBSD ƥॢåץǡȤˡμʹ

branch ȥåץǡȤˡδط礶äѤʿޤȤưʲ˼.
 75%, "FreeBSD ΥƥॢåץǡȤμʹ"


ߤʬ뤬release branch αޤäƤвȳڤǤ.
100% οޤ̤Ȥ櫓ǤϤʤ. ä˥åץǡȤˡϡͥ줿ġ뤬ȯƳڤˤʤäƤפΤǡåץǡȤɬפʤȤĴľȴ򤷤ȯ¿.

½

freebsd-update ѤơʬΥƥ򥢥åץǡȤ*11.
ޤԤäʤСθСĴ٤ƤɤʤäϿ.
ޤfreebsd-update cron ¹ԤǤ褦ꤻ(μ½פФ).

ports/packages Υåץǡ

ports/packages ΥåץǡȤϡŪˤ ports 򹹿ƤơΥեȥƥ󥹥ȡ뤹Ф褤.
ȤϤϻ֤뤷եȥƱΤΰ¸ط˱äƹɬפʤȤͤô礭*12.
ǡports/packages ξŬڤ˥åץǡȤġ뤬Ĥ*13Τǡ˻Ȥ.

ʲˡӤʥġҲ𤷤Ƥ
ȤȤƤϡŪˤϼΤ褦ˤФ褤.

  1. portsnap cron Ѥƾ ports 쥯ǿξ֤
  2. portaudit cron Ѥƥ󥹥ȡѤߤ package/ports ȼκǿΤ
  3. portupgrade ѤơȼΤߤĤä package/ports 򹹿ưʺǿС˹

portsnap

ports 򹹿뤿Υġ롥cvsup ᤤ褦.
ޤportsnap ְʳפΥġǤ portsԤäݤˤ IndexΤ portsdb -uU ȤƤȤ(ǰΰ٤ˤ)ɬפ 20ʬ٤꤫ͤʤǤꡤˤǤ.
portsdb ǹƤ¤ˤƤ Index ˹Τ(ȤäƤ)portsdb -uU ȤɬפʤΤǤ.

 portsnap fetch
 portsnap extract

Ȥ. /usr/ports ʲϿʤäƤޤϤʤΤǡפʥǡ֤Ƥʤ.
(ޥ˥奢ɤ¤¼Ūʺϸʤ)ܰʹߤ

 portsnap fetch
 portsnap update

ȤƤФ褵.

cron ˤϡ㤨

 0 4 * * * root portsnap cron

ʤɤ /etc/crontab ˽񤤤Ƥơroot ˡ֥ǡʤäפȤ᡼뤬褿餽ΤȤ

 portsnap update

ȤФ褤Ϥ.
ʤޥ˥奢ˤ cron portsnap update ԤΤɤʤͳդǽ񤤤ƤΤդ٤.
ɤƤ cron ưä portsnap -I update ȤƤȤ񤤤Ƥ.

portupgrade

˥󥹥ȡ뤵Ƥ ports/packages 򥢥åץ졼ɤġ.
򥤥󥹥ȡ뤷ƤȡĤǤ portinstall portversion ޥɤȤ褦ˤʤ뤷Ȥˤ󥹥ȡ뤷Ƥ.
򥤥󥹥ȡ뤷ϡport Υ󥹥ȡ

 portinstall ե̾

ȤǤ褤褦ˤʤ뤷åץ졼ɤ

 portupgrade ե̾

Ǥ褤ΤǤȤƤڤˤʤ.

portaudit

ȼΤ륤󥹥ȡѤ ports/package 򸫤ĤƤġ.
㤨С

 portaudit -adF

ȤƤߤȤ褤.

½

portsnap, portupgrade, portaudit Τ󥹥ȡ뤵ƤʤΤХ󥹥ȡ뤻.
cvsup ⤷ portsnap Ԥʤ, ports ǿΤΤˤƤ.
ֻ֤顤ޥɤųݤƵäƤ.

ʤߤˡƥ ports Ƥ򤭤 update *14

λǥƥ 6.2-Release-p9 , X 7.3 *15, Gnome 2.20 ˤʤ.
ϤޤǤΥޥɤƤߤȰʲΤ褦ˤʤ뤳Ȥˤʤ.

> uname -v ƥΥСå

FreeBSD 6.2-RELEASE-p9 #0: Thu Nov 29 04:07:33 UTC 2007 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC

> portaudit -adF ports ȼƺϤƤߤ

0 problem(s) in your installed packages found.

> portupgrade -na -x 'emacs*' ports update ޤƤʤΤ뤫å. emcws ȤäƤط emacs ŤᡤƤ.

[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 646 packages found (-0 +23) ....................... done]

** No need to upgrade 'jbigkit-1.6' (>= jbigkit-1.6). (specify -f to force) [#vaaf0dc6]

ά

---> ** Upgrade tasks 645: 0 done, 1 ignored, 0 skipped and 0 failed

ά

---> Packages processed: 0 done, 645 ignored, 0 skipped and 0 failed 0 ʬupdate ports ο. 0 ʤǿȤȤ.

---> Session ended at: Wed, 05 Dec 2007 20:40:18 +0900 (consumed 00:05:29)

ʤ(X Gnome ΥС󤬾夬äط)̤ϥǥեȤ After-sm.png Τ褦ˤʤ.

ݡ

FreeBSD 6.3-Release 줿ʤ*16Υƥ򤽤˥åץǡȤˤϤɤ褤λǤʤweb Ĵ٤ʤɤ*17ʤ٤ܺ٤Ĵ٤.
ޤԤäȤˤĤ𤻤.


*1 ǰʤ顤unix ѤŪʻȤߤϤޤʤ. ʤʤ顤ƥ꤬ʤ˿ˤʤäΤϼ¤ϤĤǯΤȤǤꡤƼ OS "ʬ" ΤϤǤ. ƥ꤬Ǥʤäˤ OS/Software ΥåץǡȤѥåƤȤȤ٤Ϻʤ㤫äᡤŪˡǤ⤽ǤϤʤä.
*2 ȤΤ⡤uname ϥѥ뤵ʤȹʤ⡤νƤϹ˴ԤˤäƼͳǤƤޤΤ.
*3 ̤˥᥸㡼礭Ф餬Ʊʤޥʡ礭꿷
*4 äơ㤨Ʊ "7.0-current" ȸäƤꤷˤƤ㤦ΤǡƤξܺ٤˴Ťʤȿͤä̤ʤ.
*5 ݤʤ줬
*6 ºݤ "make world" ȤƤΤΤ. ϼºݤˤ "make buildworld; make buildkernel; make installkernel; make installworld" Ȥˡ侩Ƥ.
*7 ǶΥС stable ǤˤŬѲǽȤȤˤʤäƤϤ뤬ɬޤԤ櫓ǤϤʤ褦
*8 礫ϤϤ cvsup4.jp.FreeBSD.org ֶᤤ. fastest_cvsup ȤޥɤdzΤ.
*9 ɤˤϡftp4.jp.freebsd.org/pub/FreeBSD/ports/ports.tar.gz ľܻäƤƻŸƤportsnap ȤΤ褤
*10 Ūˤϡmergemaster ޥɤ֤ɤޤפʹƤ
*11 Ӥ˼Τԡ󥸺ΤԤ "make world" ( & ѥ)ǹԤäƤ褤.˵ʤȻפ
*12 ǿˤƤȼΤϰ̣ˤƤ
*13 빽. /usr/ports/ports-mgmt/ ʲϴŪˤġǤ
*14 /usr/ports/UPDATING ˽񤫤Ƥ̤˼¹ԤƤ fail ¿ȯ塤pkgdb 줿ꤹΤǡȥ֥нǤʤȼ¹ԤǤʤ. ޤ X 餤礭ʣʥƥ٤˹褦ȤΤ̵ʤ. ʤߤ˴黰Ϥ
*15 6.2-Release ꡼ X 6.9 Ǥ. X ΥС 6.9 礭ʤȤˡX Υե빽¤礭ѤäΤǡΥС󥢥åפϥȥ֥뤬¿ȯ. ȥ֥βμ̵Ԥ̵ X ΥС夲ʤ. ȼΤ ports ΤĤϤΤ update Ǥʤ.
*16 2007.12.23 ˸ͽ. ޤͽ٤Τ
*17 6.1-Release 6.2-Release ؤΥåץǡȥġʤɤõƤߤп¬Ǥ褦