320x100
장비에 리눅스 설치
설치시 yum data 영역을 별도로 설정
예) /centos , /yum
모든 설치후에
rsync 로 centos에 있는 파일들 동기화(한국서버)
설치시 yum data 영역을 별도로 설정
예) /centos , /yum
모든 설치후에
rsync 로 centos에 있는 파일들 동기화(한국서버)
#rsync -avrt --delete --exclude "local*" --exclude "isos" rsync://ftp.neowiz.com/centos/ /Centos/
총용량은 6.0 버전 기준으로 총 120G정도다.
그리고 yum 설정변경
#vi /etc/yum.repos.d/CentOS-Base.repo 수정
mirror.centos.org 부분과 mirrorlist.centos.org 부분을 수정을 해준다
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 ->
gpgkey=http://192.168.0.1/centos/RPM-GPG-KEY-CentOS-5
모든 설정 끝
설정파일을 yum update 하고 싶은 client 에 복사후
#yum install update 하면 된다.
총용량은 6.0 버전 기준으로 총 120G정도다.
그리고 yum 설정변경
#vi /etc/yum.repos.d/CentOS-Base.repo 수정
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 ->
gpgkey=http://192.168.0.1/centos/RPM-GPG-KEY-CentOS-5
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus ->
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ ->
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
#serivce httpd start
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ ->
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
#serivce httpd start
모든 설정 끝
설정파일을 yum update 하고 싶은 client 에 복사후
#yum install update 하면 된다.
320x100
'Linux' 카테고리의 다른 글
nfs mount: 사용 권한이 거부됨 (0) | 2011.08.11 |
---|---|
chmod 폴더 or 파일만 (0) | 2011.08.11 |
ReadNAS APT 활용 (0) | 2011.07.05 |
Netgear ReadNAS crontab 설정하기 (0) | 2011.06.30 |
원격접속 프로그램 FreeNX 설치 (0) | 2011.06.10 |