创建本地yum源服务器

Posted by 4Aiur on 04/06/2010 in Linux |

创建本地yum源服务器 # 安装createrepo包 [root@localhost centos]# yum -y install createrepo [root@localhost centos]# cat update.sh #!/bin/bash # set -x rsync –progress -rvu -lptD –exclude=”isos/” –exclude=”SRPMS/” –exclude=”x86_64″ rsync://rsync.kddilabs.jp/centos/5.4/ mirror/ createrepo -v –update mirror/myapp/i386/ # 同步本地yum库 [root@localhost centos]# ./update.sh 生成yum配置文件提供客户端使用 [root@localhost foo]# cat myyumsource.repo # log.repo [myapp] name=CentOS-$releasever – myapp baseurl=http://192.168.3.63:9999/mirror/myapp/i386/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 [base] name=CentOS-$releasever – Base #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ […]

Tags: ,

Copyright © 2010-2024 4Aiur All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.