zoukankan      html  css  js  c++  java
  • redhat yum替换成CentOS yum 并修改源

    wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
    wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
    wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-60.el6.centos.noarch.rpm 
    wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
    
    
    rpm -qa | grep yum | xargs rpm -e --nodeps
    
    rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
    rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
    rpm -ivh yum-3.2.29-60.el6.centos.noarch.rpm  yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm 
    
    cd /etc/yum.repos.d
    wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
    编辑CentOS6-Base-163.repo文件,将其中的$releasever更改为centos的版本号,注意6.x版本,都使用6
    
    yum clean all 清除缓存
    yum makecache 生成缓存

     禁用 镜像检测插件,因为有时太慢。

    yum --disableplugin=fastestmirror update

  • 相关阅读:
    java的应用项目
    项目评审ppt的纲要
    Spark环境搭建
    spark 环境搭建坑
    redis cluster 实现
    hadoop环境搭建编译
    centos 网络配置
    自定义shell开头PS1
    Centos. Mac 通过nfs 搭建共享目录
    mac系统中实现vitualBox中访问内网端口
  • 原文地址:https://www.cnblogs.com/wucg/p/4094303.html
Copyright © 2011-2022 走看看