开发者社区> 问答> 正文

2016.7.1 centos6.5 64位镜像yum源回复

今天更改配置,恢复了公共镜像centos6.5 64位,安装lnmp的时候失败,发现是yum源缺失,
需要把/etc/ [font="]/etc/yum.repos.d/backup/CentOS-Base.repo     移动到/etc/ [font="]/etc/yum.repos.d/CentOS-Base.repo

展开
收起
焦尾鲤 2016-07-01 13:13:28 6776 0
1 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。
    楼主您好,

    感谢您的指点。实践了一下,是如您所说的:

    [root@iZ23jyp275rZ ~]# ls /etc/yum.repos.d/
    backup
    [root@iZ23jyp275rZ ~]# ls /etc/yum.repos.d/backup/
    CentOS-Base.repo  epel.repo

    [root@iZ23jyp275rZ ~]# yum update
    Loaded plugins: security
    Setting up Update Process
    No Packages marked for Update
    [root@iZ23jyp275rZ ~]# yum install httpd
    Loaded plugins: security
    Setting up Install Process
    No package httpd available.
    Error: Nothing to do


    [root@iZ23jyp275rZ ~]# mv /etc/yum.repos.d/backup/CentOS-Base.repo /etc/yum.repos.d/
    [root@iZ23jyp275rZ ~]# yum install httpd
    Loaded plugins: security
    base                                                                                 | 3.7 kB     00:00
    base/primary_db                                                                      | 4.7 MB     00:04
    extras                                                                               | 3.4 kB     00:00
    extras/primary_db                                                                    |  37 kB     00:00
    updates                                                                              | 3.4 kB     00:00
    updates/primary_db                                                                   | 748 kB     00:00
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check

    2016-07-01 17:42:35
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
低代码开发师(初级)实战教程 立即下载