制作本地yum源

制作本地yum源

###########rsync 5 6 7 centos
/usr/bin/rsync -vaHP  --exclude=2*/ --exclude=3*/ --exclude=4*/ --exclude=debug/ --exclude=testing/ --exclude=isos/ --exclude=SRPMS/ --exclude=ppc*/ --delete-excluded --numeric-ids --delete --delete-after --delay-updates rsync://rsync.mirrors.ustc.edu.cn/centos/ /var/www/html/yum/centos/ 

###########rsync 5 6 7 epel
/usr/bin/rsync -vaHP  --exclude=4/ --exclude=4AS/ --exclude=4ES/ --exclude=4WS/ --exclude=testing/ --exclude=debug/  --exclude=isos/ --exclude=SRPMS/ --exclude=ppc*/ --delete-excluded --numeric-ids --delete --delete-after --delay-updates rsync://rsync.mirrors.ustc.edu.cn/epel/ /var/www/html/yum/epel/

##########rsync 5 6 7 rpmforge
/usr/bin/rsync -vaHP  --exclude=ppc/ --exclude=el2.1/ --exclude=el3/ --exclude=el4/  --exclude=ppc64/ --exclude=el5/ --exclude=el5/  --exclude=debug/  --exclude=isos/ --exclude=SRPMS/ --exclude=ppc/ --delete-excluded --numeric-ids --delete --delete-after --delay-updates rsync://apt.sw.be/pub/freshrpms/pub/dag/redhat/ /var/www/html/yum/rpmforge/ 

repo示列

# CentOS-Base.repo
#
# 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 - yum.tuotuode.com
baseurl=http://yum.tuotuode.com/centos/$releasever/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=http://yum.tuotuode.com/centos/RPM-GPG-KEY-CentOS-6
 
#released updates 
[updates]
name=CentOS-$releasever - Updates - yum.tuotuode.com
baseurl=http://yum.tuotuode.com/centos/$releasever/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=http://yum.tuotuode.com/centos/RPM-GPG-KEY-CentOS-6
 
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - yum.tuotuode.com
baseurl=http://yum.tuotuode.com/centos/$releasever/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=http://yum.tuotuode.com/centos/RPM-GPG-KEY-CentOS-6
 
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - yum.tuotuode.com
baseurl=http://yum.tuotuode.com/centos/$releasever/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=http://yum.tuotuode.com/centos/RPM-GPG-KEY-CentOS-6
 
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - yum.tuotuode.com
baseurl=http://yum.tuotuode.com/centos/$releasever/contrib/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
gpgcheck=1
enabled=0
gpgkey=http://yum.tuotuode.com/centos/RPM-GPG-KEY-CentOS-6

发表评论

电子邮件地址不会被公开。 必填项已用*标注