Server ≫ Linux Server ≫ Fedora 8 ≫ アップデート2

 
   
アップデート
   
 

yum コマンドを使い Fedora 8 を最新の状態にします。

なお、『アップデート1』で最新の状態に更新した場合は下記の『手動アップデート』は必要ありませんが、その他の項目は実行して下さい。

これは、初期設定で1時間毎に自動で更新確認する設定になっていますがサーバー用途で使う場合にはサーバーに負荷が掛かりますのでストップさせます。

その後、手動でアップデートして1日1回(夜間)の自動アップデートを行う yum-cron をインストールします。

   
   
自動アップデートのストップ
   
 

自動アップデートをストップさせます。

下記のように入力します。青文字が入力文字です。

   
 
 [root@papa-net ~]#
/etc/rc.d/init.d/yum-updatesd stop    ← 入力
 yum-updates を停止中:                   [
OK ]
 
   
 

次に yum-updatesd を自動起動させないようにします。

下記のように入力します。青文字が入力文字です。

   
 
 [root@papa-net ~]#
chkconfig yum-updatesd off    ← 入力
 
   
  確認をします。下記のように表示されれば自動起動しないようになっています。

下記のように入力します。青文字が入力文字です。

   
 
 [root@papa-net ~]#
chkconfig --list yum-updatesd    ← 入力
 yum-updatesd      0:off  1:off  2:off  3:off  4:off  5:off  6:off
 
   
   
手動アップデート
   
 

手動アップデートを実行します。

下記のように入力します。青文字が入力文字です。

   
   
 
[root@linux]# yum update    ← 入力
 Setting up Update Process
 Resolving Dependencies
 --> Running transaction check
 ---> Package nspluginwrapper.i386 0:0.9.91.5-18.fc8 set to be updated
 ---> Package libgtop2.i386 0:2.20.1-1.fc8 set to be updated
 ---> Package m17n-db-telugu.noarch 0:1.5.1-1.fc8 set to be updated
 ---> Package tibetan-machine-uni-fonts.noarch 0:1.901-1.fc8 set to be updated
 ---> Package libbeagle.i386 0:0.2.18-5.fc8 set to be updated
        ↓↓
    ↓↓ 途中省略
    ↓↓

 ---> Package paps-libs.i386 0:0.6.8-1.fc8 set to be updated
 ---> Package python-genshi.noarch 0:0.4.4-2.fc8 set to be updated
 --> Running transaction check
 ---> Package libsexy.i386 0:0.1.11-3.fc8 set to be updated
 ---> Package m4.i386 0:1.4.10-1.fc8 set to be updated
 filelists.sqlite.bz2      100% |=========================| 8.0 MB   00:13
 filelists.sqlite.bz2      100% |=========================| 4.5 MB   00:02
 --> Finished Dependency Resolution

 Dependencies Resolved

 =============================================================================
  Package              Arch       Version             Repository        Size
 =============================================================================
 Installing:
  kernel               i686       2.6.24.4-64.fc8     updates            17 M
 Updating:
  ConsoleKit           i386       0.2.3-3.fc8.1       updates            55 k
  ConsoleKit-libs      i386       0.2.3-3.fc8.1       updates            14 k
  ConsoleKit-x11       i386       0.2.3-3.fc8.1       updates            18 k
        ↓↓
    ↓↓ 途中省略
    ↓↓

  paps-libs            i386       0.6.8-1.fc8         updates            22 k
  python-crypto        i386       2.0.1-9.1           fedora            196 k
  python-genshi        noarch     0.4.4-2.fc8         fedora            376 k
  python-paste         noarch     1.4.2-1.fc8         fedora            678 k
  python-sexy          i386       0.1.9-3.fc7         fedora             23 k
  selinux-policy-devel noarch     3.0.8-95.fc8        updates           532 k
  sg3_utils-libs       i386       1.23-2.fc8          fedora             42 k

 Transaction Summary
 =============================================================================
 Install     11 Package(s)
 Update     340 Package(s)
 Remove       0 Package(s)

 Total download size: 372 M
 Is this ok [y/N]:
y    ← y を入力(インストール開始)
 Downloading Packages:
 (1/351): libsmbios-libs-0 100% |=========================| 237 kB    00:00
 (2/351): cups-1.3.6-4.fc8 100% |=========================| 3.4 MB    00:07
 (3/351): tzdata-2008b-1.f 100% |=========================| 752 kB    00:01
 (4/351): m17n-lib-1.5.1-1 100% |=========================| 164 kB    00:00
 (5/351): glx-utils-7.0.2- 100% |=========================|  35 kB    00:00
        ↓↓
    ↓↓ 途中省略
    ↓↓

 (347/351): libbeagle-0.2. 100% |=========================|  45 kB    00:00
 (348/351): tibetan-machin 100% |=========================| 1.6 MB    00:02
 (349/351): m17n-db-telugu 100% |=========================|  15 kB    00:00
 (350/351): libgtop2-2.20. 100% |=========================| 116 kB    00:00
 (351/351): nspluginwrappe 100% |=========================| 130 kB    00:00
 warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
 Importing GPG key 0x4F2A6FD2 "Fedora Project <fedora@redhat.com>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
 Is this ok [y/N]:
y   ← y を入力(GPGキーの再インストール開始)
 Running rpm_check_debug
 Running Transaction Test
 Finished Transaction Test
 Transaction Test Succeeded
 Running Transaction
   Updating : bash                           ##################### [  1/691]
   Updating : glib2                          ##################### [  2/691]
   Updating : cairo                          ##################### [  3/691]
   Updating : libxml2                        ##################### [  4/691]
   Updating : popt                           ##################### [  5/691]
       
↓↓
    ↓↓ 途中省略
    ↓↓

   Cleanup : glx-utils                       ##################### [687/691]
   Cleanup : m17n-lib                        ##################### [688/691]
   Cleanup : tzdata                          ##################### [689/691]
   Cleanup : cups                            ##################### [690/691]
   Cleanup : libsmbios-libs                  ##################### [691/691]

 Installed: kernel.i686 0:2.6.24.4-64.fc8
 Dependency Installed: htmlview.noarch 0:4.0.0-3.fc7 libsexy.i386 0:0.1.11-3.fc8 m4.i386 0:1.4.10-1.fc8 
 paps-libs.i386 0:0.6.8-1.fc8 python-crypto.i386 0:2.0.1-9.1 python-genshi.noarch 0:0.4.4-2.fc8 python-
 paste.noarch 0:1.4.2-1.fc8 python-sexy.i386 0:0.1.9-3.fc7 selinux-policy-devel.noarch 0:3.0.8-95.fc8 
 sg3_utils-libs.i386 0:1.23-2.fc8
       
↓↓
    ↓↓ 途中省略
    ↓↓

 totem-plparser.i386 0:2.20.1-2.fc8 transmission.i386 0:1.04-1.fc8 tzdata.noarch 0:2008b-1.fc8 udev.i386 
 0:118-1.fc8 unzip.i386 0:5.52-6.fc8 urw-fonts.noarch 0:2.4-3.fc8 ustr.i386 0:1.0.4-6.fc8 util-linux-
 ng.i386  0:2.13.1-1.fc8 vim-minimal.i386 2:7.1.245-1.fc8 vixie-cron.i386 4:4.2-8.fc8 vpnc.i386 0:0.5.1-
 2.fc8 wpa_supplicant.i386 1:0.5.7-21.fc8 xdg-utils.noarch 0:1.0.2-4.fc8 xorg-x11-drv-amd.i386 0:2.7.7.7-
 2.fc8 xorg-x11-drv-ati.i386 0:6.8.0-1.fc8 xorg-x11-drv-nouveau.i386 0:2.1.6-1.fc8 xorg-x11-drv-nv.i386 
 0:2.1.6-1.fc8 xorg-x11-server-Xorg.i386 0:1.3.0.0-44.fc8 xorg-x11-server-utils.i386 0:7.3-2.fc8
 xterm.i386  0:234-1.fc8 yelp.i386 0:2.20.0-8.fc8 ypbind.i386 3:1.20.4-3.fc8 yum.noarch 0:3.2.8-2.fc8 yum-
 updates
 Complete!     
← Complete! と表示されれば完了
 You have new mail in /var/spool/mail/root
 
   
 

Fedora のインストール直後は何百と言うアップデート 項目があります。

かなり時間が掛かりますがセキュリティー上重要なことなので必ずアップデートを実行して下さい。

   
   
yum-cron のインストール
   
 

1日1回(夜間)の自動アップデートを行う yum-cron をインストールします。

下記のように入力します。青文字が入力文字です。

   
 
 [root@papa-net ~]#
yum install yum-cron    ← 入力
 fedora                     100% |=========================| 2.1 kB    00:00
 updates                    100% |=========================| 2.3 kB    00:00
 Setting up Install Process
 Parsing package install arguments
 Resolving Dependencies
 --> Running transaction check
 ---> Package yum-cron.noarch 0:0.8.2-1.fc8 set to be updated
 --> Processing Dependency: yum-downloadonly for package: yum-cron
 --> Running transaction check
 ---> Package yum-downloadonly.noarch 0:1.1.11-1.fc8 set to be updated
 --> Finished Dependency Resolution

 Dependencies Resolved

 =============================================================================
  Package                  Arch        Version        Repository        Size
 =============================================================================
 Installing:
  yum-cron                 noarch      0.8.2-1.fc8    updates            16 k
 Installing for dependencies:
  yum-downloadonly         noarch      1.1.11-1.fc8   updates           7.5 k

 Transaction Summary
 =============================================================================
 Install      2 Package(s)
 Update       0 Package(s)
 Remove       0 Package(s)

 Total download size: 24 k
 Is this ok [y/N]:
y   ← y を入力
 Downloading Packages:
 (1/2): yum-cron-0.8.2-1.f 100% |=========================|  16 kB    00:00
 (2/2): yum-downloadonly-1 100% |=========================| 7.5 kB    00:00
 Running rpm_check_debug
 Running Transaction Test
 Finished Transaction Test
 Transaction Test Succeeded
 Running Transaction
 Installing: yum-downloadonly               ######################### [1/2]
 Installing: yum-cron                       ######################### [2/2]

 Installed: yum-cron.noarch 0:0.8.2-1.fc8
 Dependency Installed: yum-downloadonly.noarch 0:1.1.11-1.fc8
 Complete!
    ← Complete! と表示されれば完了
 
   
  yum-cron の起動。
   
   
 [root@linux]#
/etc/rc.d/init.d/yum-cron start    ← 入力
 夜間 yum 更新の有効化中:                   [
OK ]
 
   
  続いてPCの再起動に vsftpd を自動的に起動するようにします。下記のように入力します。青文字が入力文字です。
   
   
 [root@linux]#
chkconfig yum-cron on    ← 入力
 
   
  自動起動設定の確認。下記のように入力し 、下記のように表示されればOKです。青文字が入力文字です。
   
   
 [root@linux]#
chkconfig --list yum-cron    ← 入力
 yum-cron       0:off   1:off   2:on   3:on   4:on   5:on   6:off
 
   
  再起動は下記のように入力します。青文字が入力文字です。
   
   
 [root@linux]#
/etc/rc.d/init.d/yum-cron restart    ← 入力
 
   
   

戻る