zoukankan      html  css  js  c++  java
  • centos 6 切换base源

    切换为阿里云源:

    mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup && wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo && yum makecache

     备份旧源-->下载新源-->生成缓存

    切换为网易源:

    mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup.ali && wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base-163.repo && yum clean all && yum makecache

    切换为epel源:

    安装epel,centos6选6,5就选5

    32位系统选择:

    rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

    rpm -ivh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

    64位系统选择:

    rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

    rpm -ivh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

    导入key:

    rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

    rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-5

    如果用比较新的软件,用epel-test.repo这个文件就行了

    别忘了安装yum install yum-priorities

    [root@localhost yum.repos.d]# ls |grep epel
    epel.repo
    epel-testing.repo

     
  • 相关阅读:
    Beautifulsoup模块
    Tronado自定义Form组件
    5分钟入门Tornado
    Django-组件拾遗
    mvc Area(区域)相关技术
    制作web安装程序
    MVC
    Asp.net MVC中repository和service的区别
    关于ASP.NET MVC+Repository+Service架构的一些思考
    MVC引入SERVICE层 提高代码重用性 沟通CONTROL和MODEL
  • 原文地址:https://www.cnblogs.com/netsa/p/7645136.html
Copyright © 2011-2022 走看看