您的位置:首页 > 运维架构 > Linux

rhel5.3下配置yum源服务器

2010-02-24 11:37 477 查看
安装所需软件包
yum -y install httpd createrepo
若无法使用yum可以通过rpm -ivh xxx的方式来安装
启动apache服务
chkconfig --levle 3 httpd on
挂载光盘mount /dev/cdrom /media
将软件包拷贝到apache发布路径下
cp -R /media/Server/ /var/www/html/
使用createrepo工具创建更新源
createrepo -g /media/Server/repodata/comps-rhel5-server-core.xml /var/www/html/Server
客户端配置文件的书写
vi rhel-debuginfo.repo
[server]
name= Red Hat Enterprise Linix 5.3
baseurl=http://apache IP/Server
enabled=1
gpgcheck=0

常用使用方法
yum install [software name]
yum remove [software name]
yum update [software name]
yum list [software name]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux yum 休闲 rhel 5.3