centos重装yum

饭fan有引力 2012-03-14 07:33:10
我安装的centos6.2,这两天不知道为什么yum下载总是出错,最后我把yum 卸载掉,想从光盘重新安装yum,不知道如何操作。求赐教
...全文
1009 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
nehc 2012-03-18
  • 打赏
  • 举报
回复
不用 重新 安装 yum 吧!

下载出错是 源 的问题,重装 yum 解决不了问题的 !

解决办法请参考: http://mirrors.163.com/.help/centos.html

按照那个去做,应该没问题的
饭fan有引力 2012-03-14
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 shidishui 的回复:]

找到安装包,rmp安装
[/Quote]

试过了,然后重装好了还是不行
饭fan有引力 2012-03-14
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 cch1982169 的回复:]

(1)使用root登录,挂载光盘
#mount /dev/cdrom /media

(2)创建本地yum客户端的repo文件,以使用本地光盘yum repository
#vim /etc/yum.repos.d/media.repo
将下列内容写入并保存
[base]
name=Server
baseurl=file:///media/Server
enabled=1……
[/Quote]


[root@localhost cdrom]# yum clean all
Configuration file /etc/yum/pluginconf.d/aliases.conf not found
Unable to find configuration file for plugin aliases
Configuration file /etc/yum/pluginconf.d/changelog.conf not found
Unable to find configuration file for plugin changelog
Configuration file /etc/yum/pluginconf.d/downloadonly.conf not found
Unable to find configuration file for plugin downloadonly
Configuration file /etc/yum/pluginconf.d/presto.conf not found
Unable to find configuration file for plugin presto
Configuration file /etc/yum/pluginconf.d/tmprepo.conf not found
Unable to find configuration file for plugin tmprepo
Configuration file /etc/yum/pluginconf.d/verify.conf not found
Unable to find configuration file for plugin verify
Configuration file /etc/yum/pluginconf.d/versionlock.conf not found
Unable to find configuration file for plugin versionlock
Loaded plugins: fastestmirror, security
Repository base is listed more than once in the configuration
Cleaning repos: base extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@localhost cdrom]# yum install httpd
Configuration file /etc/yum/pluginconf.d/aliases.conf not found
Unable to find configuration file for plugin aliases
Configuration file /etc/yum/pluginconf.d/changelog.conf not found
Unable to find configuration file for plugin changelog
Configuration file /etc/yum/pluginconf.d/downloadonly.conf not found
Unable to find configuration file for plugin downloadonly
Configuration file /etc/yum/pluginconf.d/presto.conf not found
Unable to find configuration file for plugin presto
Configuration file /etc/yum/pluginconf.d/tmprepo.conf not found
Unable to find configuration file for plugin tmprepo
Configuration file /etc/yum/pluginconf.d/verify.conf not found
Unable to find configuration file for plugin verify
Configuration file /etc/yum/pluginconf.d/versionlock.conf not found
Unable to find configuration file for plugin versionlock
Loaded plugins: fastestmirror, security
Repository base is listed more than once in the configuration
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os error was
14: PYCURL ERROR 52 - "Empty reply from server"
Error: Cannot find a valid baseurl for repo: base
[root@localhost cdrom]#

还是不行,这是怎么回事
草虫 2012-03-14
  • 打赏
  • 举报
回复
(1)使用root登录,挂载光盘
#mount /dev/cdrom /media

(2)创建本地yum客户端的repo文件,以使用本地光盘yum repository
#vim /etc/yum.repos.d/media.repo
将下列内容写入并保存
[base]
name=Server
baseurl=file:///media/Server
enabled=1
gpgcheck=0

(3)测试使用yum来安装软件包
#yum clean all
#yum install httpd
如果能正常安装,那么恭喜你,本地yum repository创建成功!!
shidishui 2012-03-14
  • 打赏
  • 举报
回复
找到安装包,rmp安装

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧