메인 콘텐츠로 건너뛰기
블로그 리눅스 레드 햇 9.0 업데이트 - 업데이트 스크립트

Red Hat 9.0 업데이트 – 업데이트 스크립트

1

Red Hat 9.0 배포판 업데이트. Red Hat 9.0 스몰 배포판은 이제 최소 크기가 670MB에 불과합니다.

이미 Red Hat 9.0 스몰 또는 라지를 배포한 경우 다음 명령어를 실행하여 최신 상태로 업데이트하십시오.

[code]
# 낭비되는 공간 제거(약 60 meg 정도)
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 업그레이드

# sendmail 수정
/etc/init.d/sendmail 중지
apt-get 설치 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 시작 # 불만이 있으면 위의 .bak 이동을 반복합니다.

# 새 SSH 키 생성
/etc/init.d/sshd 중지
rm -f /etc/ssh/*_key*
/etc/init.d/sshd 시작

# procps(상단 등) 업데이트 – 상단의 디스플레이 오류 수정
rpm -Uvh http://tech9.net/rml/procps/packages/2.0.13/procps-2.0.13-1.i386.rpm
[/code]

-크리스


댓글 (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.

댓글 남기기

이메일 주소는 게시되지 않습니다. 필수 필드가 표시됩니다 *