メインコンテンツにスキップ
ブログリナックスRed Hat 9.0 アップデート - アップデートスクリプト

Red Hat 9.0 アップデート - アップデートスクリプト

Red Hat 9.0 ディストロの更新。 Red Hat 9.0 Small ディストロの最小サイズが 670MB になりました。

すでに Red Hat 9.0 の小規模または大規模な導入を行っている場合は、以下のコマンドを実行して最新の状態にしてください。

[code] (コード)
# 無駄なスペースを削除 (約60メガ程度)
rpm -e wireless-tools telnet-server hwcrypto yp-tools ypbind wvdial statserial slrn rp-pppoe pciutils apmd setserial hotplug irda-utils grub nss_ldap

rm -f /etc/ldap.conf.rpmsave

rm -rf /lib/modules/*。

# Red Hatのパッケージマネージャー "apt-get "を入手する。
rpm -Uvh http://ftp.freshrpms.net/pub/freshrpms/redhat/9/apt/apt-0.5.5cnc6-fr1.i386.rpm

# apt-getは自分でアップデートできる
apt-get アップデート

# システムのアップデート
apt-get upgrade

# sendmailの修正
/etc/init.d/sendmail stop
apt-get install m4
mv -f /etc/rc.d/init.d/sendmail.rpmsave /etc/rc.d/init.d/sendmail
mv -f /etc/mail/sendmail.cf.rpmnew /etc/mail/sendmail.cf
mv -f /etc/mail/submit.cf.rpmnew /etc/mail/submit.cf
mv -f /etc/mail/submit.cf.bak /etc/mail/submit.cf
/etc/init.d/sendmail start # クレームが出たら、上の.bakの移動を繰り返す

# 新しいSSHキーを生成する
/etc/init.d/sshd 停止
rm -f /etc/ssh/*_key* を実行します。
/etc/init.d/sshd スタート

# procps (top, etc.)の更新 - topの表示エラーの修正
rpm -Uvh http://tech9.net/rml/procps/packages/2.0.13/procps-2.0.13-1.i386.rpm
[/code] (英語)

- Chris


コメント (3)

  1. Author Photo

    [root@li-94 root]# ./newscript
    usage: statserial [-n | -d | -x] [device]
    -n option disables looping
    -d option prints modem status as a decimal number
    -x option prints modem status as a hexadecimal number
    Default device is /dev/ttyS1
    ./newscript: line 4: nss_ldap: command not found
    rpm: no packages given for install
    ./newscript: line 10: http://ftp.freshrpms.net/pub/freshrpms/redhat/9/apt/apt-0.5.5cnc6-fr1.i386.rpm: No such file or directory
    ./newscript: line 13: apt-get: command not found
    ./newscript: line 16: apt-get: command not found
    Shutting down sendmail: [ OK ]
    Shutting down sm-client: [ OK ]
    ./newscript: line 20: apt-get: command not found
    mv: can’t stat source /etc/rc.d/init.d/sendmail.rpmsave
    mv: can’t stat source /etc/mail/sendmail.cf.rpmnew
    mv: can’t stat source /etc/mail/submit.cf.rpmnew
    Starting sendmail: [ OK ]
    Starting sm-client: [ OK ]
    Stopping sshd: [ OK ]
    Generating SSH1 RSA host key: [ OK ]
    Generating SSH2 RSA host key: [ OK ]
    Generating SSH2 DSA host key: [ OK ]
    Starting sshd: [ OK ]
    rpm: no packages given for install
    ./newscript: line 34: http://tech9.net/rml/procps/packages/2.0.13/procps-2.0.13-1.i386.rpm: No such file or directory

  2. Author Photo

    Ahh – You’ve got line-breaks where they shouldn’t be ..

    -Chris

  3. Author Photo

    yeah i copied and pasted – thanks for catching that – its damn late here.

コメントを残す

あなたのメールアドレスは公開されません。必須項目には*印がついています。