重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 8940|回复: 11
打印 上一主题 下一主题

[分享]配置yum

[复制链接]
楼主
发表于 2013-5-6 23:40:29 | 显示全部楼层
问一下,yum的软件来自哪里,光盘,还是网络?
回复 支持 反对

使用道具 举报

沙发
发表于 2013-5-7 22:46:54 | 显示全部楼层

与直接安装rpm -ivh 包名字,有什么区别?

回复 支持 反对

使用道具 举报

板凳
发表于 2013-5-9 17:32:09 | 显示全部楼层
要是对每一步骤是做什么的增加一个描述就好了。
回复 支持 反对

使用道具 举报

地板
发表于 2013-5-10 13:22:20 | 显示全部楼层

[root@dbserver tools]# yum -y install gcc

 

Loaded plugins: security
Repository 'Server' is missing name in configuration, using id
Setting up Install Process
Package gcc-4.1.2-48.el5.i386 already installed and latest version
Nothing to do

 

这个红色的部分,是什么意思,如何解决.

回复 支持 反对

使用道具 举报

5#
发表于 2014-6-15 17:42:04 | 显示全部楼层
QUOTE:
以下是引用easonqian在2013-05-16 15:57:44的发言:
[root@localhost yum.repos.d]# yum clean all
Loaded plugins: product-id, security, subscription-manager
Updating Red Hat repositories.
Repository 'Server' is missing name in configuration, using id
Cleaning up Everything
[root@localhost yum.repos.d]# yum -y install gcc
Loaded plugins: product-id, security, subscription-manager
Updating Red Hat repositories.
Repository 'Server' is missing name in configuration, using id
file:///mnt/iso/Server/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/mnt/iso/Server/repodata/repomd.xml'
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Server. Please verify its path and try again

我这个错在哪里
 
你这个错误是: 你的安装盘的位置不对,
你找找你的repodata 目录在哪个位置,是否直接在光盘根目录,如果是,就应该为
#vi /etc/yum.repos.d/iso.repo

添加以下内容
[Server]
baseurl=file:///mnt/iso/Server

QUOTE:
 
QUOTE:
为:

[Server]
baseurl=file:///mnt/iso

这样,你再试一下。


 

回复 支持 反对

使用道具 举报

6#
发表于 2014-6-15 17:42:33 | 显示全部楼层
就是去掉Server目录。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-23 16:57 , Processed in 0.092317 second(s), 19 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表