日期:2014-05-16  浏览次数:20681 次

linux 6.3 yum配置
本文参考了百度文库的文章,记录一下
server端安装

1 拷贝系统安装包
mount /dev/cdrom1 /ldd
cp -prf /ldd/ /var/ftp/rhel63

2 创建信息库
cd /var/ftp/rhel63/

cp Server/repodat/c27858b7430afeb372d0dd50d8a56fd46b47bc81bb9580c2bb91ab697e40592e-comps-rhel6-Server.xml /var/ftp/rhel63/Packages/

cd Packages/

createrepo -g
c27858b7430afeb372d0dd50d8a56fd46b47bc81bb9580c2bb91ab697e40592e-comps-rhel6-Se
rver.xml /var/ftp/rhel63/Packages

3 启动ftp服务
service vsftp start 

二 客户端配置
1 修改源配置文件
cd /etc/yum.repos.d/
cat rhel-source.repo 

[Packages]
name=name=Red Hat Enterprise Linux $releasever - $basearch - Source baseurl=ftp://node34/rhel63/Packages
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release