Linode で Gentoo 2008.0 を使ってみる 01
まずは、Portage管理システムの更新をする。
パッケージのツリーを更新する
# emerge --sync * An update to portage is available. It is _highly_ recommended * that you update portage now, before any other packages are updated. * To update portage, run 'emerge portage' now.
emerge --sync 完了後に、
* An update to portage is available. It is _highly_ recommended
* that you update portage now, before any other packages are updated.
* To update portage, run 'emerge portage' now.
と表示されたら、Portage そのものをアップグレードする
Portage をアップグレードする
# emerge portage * IMPORTANT: 1 config files in '/etc' need updating. * See the CONFIGURATION FILES section of the emerge * man page to learn how to update config files.
emerge portage 完了後に
* IMPORTANT: 1 config files in '/etc' need updating. * See the CONFIGURATION FILES section of the emerge * man page to learn how to update config files.
と表示されたら、/etc 以下の設定ファイルなどを更新する必要がある。
# etc-update Scanning Configuration files... The following is the list of files which need updating, each configuration file is followed by a list of possible replacement files. 1) /etc/dispatch-conf.conf (1) Please select a file to edit by entering the corresponding number. (don't use -3, -5, -7 or -9 if you're unsure what to do) (-1 to exit) (-3 to auto merge all remaining files) (-5 to auto-merge AND not use 'mv -i') (-7 to discard all updates) (-9 to discard all updates AND not use 'rm -i'): -3 Replacing /etc/dispatch-conf.conf with /etc/._cfg0000_dispatch-conf.conf mv: overwrite `/etc/dispatch-conf.conf'? y Exiting: Nothing left to do; exiting. :)
- etc-updateについて
選択肢は上記のリンクを参照する。 - GentooLinuxのパッケージ管理システムであるportageの使い方を説明する
システムをアップグレードする
まずは更新されるパッケージを確認する。
emerge system --update -vp These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] sys-devel/gcc-config-1.4.1 [1.4.0-r4] 0 kB [ebuild U ] sys-libs/timezone-data-2009j [2008i] USE="nls" 361 kB [ebuild U ] sys-devel/autoconf-2.63-r1 [2.63] USE="-emacs" 1,527 kB [ebuild U ] dev-libs/openssl-0.9.8k [0.9.8j] USE="sse2 zlib -bindist -gmp -kerberos -test" 3,762 kB [ebuild N ] virtual/acl-0 0 kB [ebuild U ] sys-apps/man-pages-3.21 [3.18] USE="nls" LINGUAS="-cs -da -de -es -fr -it -ja -nl -pl -ro -ru -zh_CN" 1,068 kB [ebuild U ] sys-apps/coreutils-7.1 [6.10-r2] USE="acl nls -caps% -gmp% (-selinux) -static -vanilla -xattr" 9,318 kB [ebuild U ] sys-fs/udev-141 [124-r1] USE="(-selinux)" 438 kB [ebuild U ] sys-apps/sandbox-1.6-r2 [1.2.18.1-r2] 300 kB [ebuild U ] sys-apps/sed-4.2 [4.1.5-r1] USE="acl%* nls -static" 862 kB [ebuild N ] dev-libs/libpcre-7.9-r1 USE="bzip2 cxx (unicode) zlib -doc -static-libs" 842 kB [ebuild U ] sys-apps/util-linux-2.14.2 [2.14.1] USE="crypt nls unicode -loop-aes -old-linux (-selinux) -slang (-uclibc)" 2,888 kB [ebuild U ] net-misc/openssh-5.2_p1-r1 [5.1_p1-r2] USE="pam tcpd -X -X509 -hpn -kerberos -ldap -libedit -pkcs11% (-selinux) -skey -smartcard -static" 1,060 kB [ebuild U ] sys-apps/grep-2.5.4-r1 [2.5.1a-r1] USE="nls pcre (-static%)" 707 kB [ebuild NS ] sys-devel/gcc-4.3.2-r3 [4.1.2] USE="fortran mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -gtk (-hardened) -ip28 -ip32r10k -libffi (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -objc -objc++ -objc-gc -test -vanilla" 57,645 kB [ebuild U ] sys-libs/glibc-2.9_p20081201-r2 [2.8_p20080602-r1] USE="nls -debug -gd -glibc-omitfp (-hardened) (-multilib) -profile (-selinux) -vanilla" 16,621 kB Total: 16 packages (13 upgrades, 2 new, 1 in new slot), Size of downloads: 97,393 kB
実際にアップグレードを適用する。
emerge system --update
時間がかかるのでしばらく待つ。
インストールされているパッケージのアップデートを行う
まずはアップデートの対象になっているパッケージを確認する
# emerge world --update -vp
そして、アップデートを実行する。
# emerge world --update