Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1973261
  • 博文数量: 610
  • 博客积分: 11499
  • 博客等级: 上将
  • 技术积分: 5511
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-12 19:27
文章分类

全部博文(610)

文章存档

2016年(5)

2015年(18)

2014年(12)

2013年(16)

2012年(297)

2011年(45)

2010年(37)

2009年(79)

2008年(101)

分类:

2012-08-06 17:15:21

原文地址:Linux yum 配置 作者:linux-studing

此配置文件为本地源配置.
首先要将安装文件放在一个你自己任为合适的位置.
开启FTP服务,默认的配置就可以.
***************************yum.conf*****************
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
[base]
name=Red Hat Enterprise 5u7 &releaserver -$basearch -Debug
baseurl=ftp://ftp:fpt@192.168.56.50/pub/rhel5u7/Server
enable=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[Cluster]
baseurl=ftp://ftp:ftp@192.168.56.50/pub/rhel5u7/Cluster
enable=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release


[ClusterStorage]
baseurl=ftp://ftp:ftp@192.168.56.50/pub/rhel5u7/ClusterStroage
enable=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release


[VT]
baseurl=ftp://ftp:ftp@192.168.56.50/pub/rhel5u7/VT
enable=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

阅读(487) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~