zoukankan      html  css  js  c++  java
  • centos yum源问题三板斧

    第一招!
    wget http://dl.fedoraproject.org/pub/ ... ease-6-8.noarch.rpm
    wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
    rpm -ivh epel-release-6-8.noarch.rpm
    rpm -ivh remi-release-6.rpm
    完成后的设置
    ls -1 /etc/yum.repos.d/epel* /etc/yum.repos.d/remi.repo
    返回
    /etc/yum.repos.d/epel.repo
    /etc/yum.repos.d/epel-testing.repo
    /etc/yum.repos.d/remi.repo
    允许remi repository
    vi /etc/yum.repos.d/remi.repo
    编辑[remi]下的enabled选项从0设为1
    [remi]
    name=Les RPM de remi pour Enterprise Linux 6 - $basearch
    #baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/
    mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
    
    第二招!
    vi /etc/yum.repos.d/epel.repo
    编辑[epel]下的baseurl前的#号去掉,mirrorlist前添加#号。正确配置如下:
    [epel]
    name=Extra Packages for Enterprise Linux 6 - $basearch
    baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
    failovermethod=priority
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    再运行
    yum makecache
    前两招不好使,第三招绝对好用目前没有我加不了epel源的机器
    
    第三招
    yum upgrade ca-certificates --disablerepo=epel 
    允许remi repository 
    yum install -y yum-utils 
    yum-config-manager --enable remi
    再 yum makecache
    ok肯定就能用yum下载软件或者运行库了。
    
  • 相关阅读:
    lodash chunk
    lodash.slice
    ⚡ vue3 全家桶体验
    构建一个简约博皮的过程
    [译] 制作 Vue 3 的过程
    ⚠ | 不要再使用 markdown 主题了!
    win 常用命令
    2020年了,别再重复学习原型了
    删除 linux 导致原来的 win10 进不去
    手写一个文章目录插件
  • 原文地址:https://www.cnblogs.com/kylingx/p/12704193.html
Copyright © 2011-2022 走看看