精华内容
下载资源
问答
  • centos7 更换163yum

    2016-01-19 17:09:00
    1. cd /etc/yum.repos.d 2. mv CentOS-Base.repo CentOS-Base.repo.bk 3. vim CentOS-Base-163.repo # CentOS-Base.repo ## The mirror system uses the connecting IP address of the client and the# upd....

    1. cd /etc/yum.repos.d

    2. mv CentOS-Base.repo CentOS-Base.repo.bk

    3. vim CentOS-Base-163.repo

     

    # CentOS-Base.repo

    #
    # The mirror system uses the connecting IP address of the client and the
    # update status of each mirror to pick mirrors that are updated to and
    # geographically close to the client. You should use this for CentOS updates
    # unless you are manually picking other mirrors.
    #
    # If the mirrorlist= does not work for you, as a fall back you can try the
    # remarked out baseurl= line instead.
    #
    #
    [base]
    name=CentOS-$releasever - Base - 163.com
    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
    baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

    #released updates
    [updates]
    name=CentOS-$releasever - Updates - 163.com
    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
    baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras - 163.com
    #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
    baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus - 163.com
    baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

     

    4. yum clean

    5. yum makecache

    转载于:https://www.cnblogs.com/lsyu/p/5142765.html

    展开全文
  • Cenots6更换163yum

    2014-10-09 10:52:59
    [b][size=large]如果发现自己的centos的yum源,速度缓慢,或出现异常不能下载安装东西,这个时候,我们可以尝试切换下yum源的配置,cenots自带的yum源,感觉还可以,下面看下如何,切换其他的指定的yum源。...
    [b][size=large]如果发现自己的centos的yum源,速度缓慢,或出现异常不能下载安装东西,这个时候,我们可以尝试切换下yum源的配置,cenots自带的yum源,感觉还可以,下面看下如何,切换其他的指定的yum源。[/size][/b]


    [b][color=green][size=large]具体步骤如下:
    [table]
    |序号|描述
    |1|进入cd /etc/yum.repos.d目录
    |2|备份原来的yum源地址文件
    |3|下载指定代理源的的repo
    |4|将下载下来的源文件,重命名为原来的文件名
    |5|清空yum缓存即可
    [/table]

    1. cd /etc/yum.repos.d 进入yum目录
    2. mv CentOS-Base.repo CentOS-Base.repo.backup 备份原来的仓储地址
    3. wget http://mirrors.163.com/.help/CentOS6-Base-163.repo --下载repo文件
    4. mv CentOS6-Base-163.repo CentOS-Base.repo
    5.yum clean all --清除缓存


    参考文章[url]http://www.cnblogs.com/liuling/p/2014-4-14-001.html[/url]
    [/size][/color][/b]
    展开全文
  • #mv /etc/yum.repos.d/CentOS6-Base.repo /etc/yum.repos.d/CentOS6-Base-163.repo_bak 2.卸载当前yum rpm -qa | grep yum | xargs rpm -e --nodeps 3.下载安装rpm文件 64位系统下载地址: ...

    1.备份原有yum源

    #mv /etc/yum.repos.d/CentOS6-Base.repo  /etc/yum.repos.d/CentOS6-Base-163.repo_bak

    2.卸载当前yum

    rpm -qa | grep yum | xargs rpm -e --nodeps

    3.下载安装rpm文件

    64位系统下载地址:

    http://mirrors.163.com/centos/6/os/x86_64/Packages/

    32位系统下载地址:

    http://mirrors.163.com/centos/6/os/i386/Packages/

    4.下载文件有5个
     

    wget  http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-81.el6.centos.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://tel.mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm 
    wget http://tel.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/python-urlgrabber-3.9.1-11.el6.noarch.rpm

    5.安装软件包

    rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm 
    rpm -ivh python-urlgrabber-3.9.1-11.el6.noarch.rpm 
    rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm 
    rpm -ivh yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm  yum-3.2.29-81.el6.centos.noarch.rpm 

    后面两个同时安装(yum-plugin-fastestmirror和yum-3.2.29要一起安装。),防止相互依赖。

    安装问题:

    如果按照遇到问题:发现错误,python-urlgrabber版本必须大于等于3.9.1-10 

    # rpm -ivh  yum-3.2.29-73.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm
    warning: yum-3.2.29-73.el6.centos.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
    error: Failed dependencies:
        python-urlgrabber >= 3.9.1-10 is needed by yum-3.2.29-73.el6.centos.noarch

    查看系统的python信息

    #rpm -qa|grep python

    查看  python-urlgrabber 的版本,从查看结果中卸载python-urlgrabber。

    #rpm -e python-urlgrabber-3.9.1-9.el6.noarch

    重新安装:

    #rpm -ivh python-urlgrabber-3.9.1-11.el6.noarch.rpm

    6.清楚yum缓存:

    yum clean all

    7.更改yum源

    #  cd /etc/yum.repos.d/

    下载:

    #  wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

    把$releasever替换成现有系统的版本号(数字6),使用vim替换命令

    # vim CentOS6-Base-163.repo
     :%s/$releasever/6/g

    :wq 退出保存,再次清理yum缓存

    # yum clean all

    将服务器软件包信息缓存至本地,提高搜索安装效率

    # yum makecache

    8.测试

    #  yum seach vim

    应该可以成功安装了。

    9.epel-release无法完成安装

    在安装webmin面板的时候到最后出现了安装错误的提示.然后更新源时发现
    或者在#yum install epel-release的时候,报错,错误信息如下。

    Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

    主要是源文件有点问题,解决方案如下

    vim /etc/yum.repos.d/epel.repo

    [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
    修改为

    [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
    最后在清理一下源

    #  yum clean all

    另类解决方案(引自http://www.111cn.net/sys/CentOS/99413.htm)

    有些时候服务器默认的DNS服务器为:127.0.0.1,我们更新一下DNS服务即可解决相关的问题.

    直接修改
    vi /etc/resolv.conf

    列如我修改为GOOGLE DNS
    nameserver 8.8.4.4
    nameserver 8.8.8.8

    如果还是出现问题,最高重启一下网络

    /etc/init.d/networking restart

     

     

    转载于:https://my.oschina.net/xiaoxiezi/blog/1492912

    展开全文
  • 更换yum 163源报错

    2018-07-02 13:54:24
    一般百度更换163yum源,都是如下操作: mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.old cd /etc/yum.repos.d/ wget wget
  • RHEL 6.4 x86_64 更换自带yum并安装配置163 yum源 系统环境 # cat /etc/issue Red Hat Enterprise Linux Server release 6.4 (Santiago) Kernel \r on an \m # uname -r 2.6.32-358.el6.x86_64 ...
    RHEL 6.4  x86_64 更换自带yum并安装配置163 yum源
    


    系统环境

    # cat /etc/issue
    Red Hat Enterprise Linux Server release 6.4 (Santiago)
    Kernel \r on an \m

    # uname -r
    2.6.32-358.el6.x86_64


    具体步骤如下


    1.删除自带的yum包。

    rpm -qa|grep yum|xargs rpm -e --nodeps



    2.打开http://mirrors.163.com/centos/6/os/x86_64/Packages/

    下载相应版本的5个包,其中python-urlgrabber是系统已经有的包,根据依赖关系需要升级。

    详细版本号会变化,根据实际名称下载。

    python-iniparse-0.3.1-2.1.el6.noarch.rpm
    python-urlgrabber-3.9.1-11.el6.noarch.rpm
    yum-3.2.29-73.el6.centos.noarch.rpm
    yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
    yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm

    具体下载命令:
    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-3.2.29-73.el6.centos.noarch.rpm
    wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-37.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/python-urlgrabber-3.9.1-11.el6.noarch.rpm


    3. 升级安装这5个包。yum开头的3个包有依赖关系,一起安装。

    rpm -Uvh python-iniparse*.rpm
    rpm -Uvh python-urlgrabber*.rpm
    rpm -Uvh yum-plugin*.rpm yum-metadata-parser*.rpm yum-*.rpm


    4.更改yum源


    cd /etc/yum.repos.d
    wget http://mirrors.163.com/.help/CentOS6-Base-163.repo



    5.编辑repo文件。

    vim CentOS6-Base-163.repo


    把里面的$releasever全部替换为6,之后保存。输入下面命令即可替换。

    :%s/$releasever/6/g


    6.清理并更新缓存


    yum clean all
    yum makecache





    展开全文
  • 解决centos 6.6 更换yum 163源报错 ...一般百度更换163yum源,都是如下操作: mv/etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base.repo.old cd/etc/yum.repos.d/ wgetwgethttp://mirrors.163.co...
  • 1.检查yum包 rpm -qa |grep yum 2.删除自带包 rpm -aq | grep yum | xargs rpm -e –nodeps 3.再检查一下 rpm -qa |grep yum 4.下载更新包 wget ...
  • 备份原来的源 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup cd /etc/yum.repos.d/ wget http://mirrors.163.com/.help/CentOS7-Base-163.repo yum clean all yum makecache
  • 更换163yum

    2017-10-28 21:22:00
    mv CentOS6-Base-163.repo CentOS-Base.repo yum clean all yum makecache   #python3 进行pip安装时使用豆瓣的源 pip3 install tornado -i https://pypi.douban.com/simple/   #Centos x64 6.9下载...
  • CentOS更换163yum

    2015-12-04 11:01:36
    163的源还是挺全的,速度也很快。1. 下载repo文件: [root@localhost ~]# cd /etc/yum.repos.d/ [root@localhost ~]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo //注:可以去这里下载相应版本...
  • CentOS默认yum源是国外的, 速度无法保证,用起来很不爽,今天我们把默认源换成国内的163源,163是目前国内最好用的源,速度是相当快的,还有一些比较好的源,比如阿里源。 进入yum源配置文件 cd /etc/yum.repos....
  • 因为将yum源设置为国内如163 yum后,可以提升软件包安装和更新的速度。用过的朋友就知道了,速度非常快。 第一步,首先备份/etc/yum.repos.d/CentOS-Base.repo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos...
  • 更换本地yum源为163

    2018-03-21 20:04:36
    一. 确保已安装 下载组件wgetrpm -qa wget 检查是否... 先备份本地源/etc/yum.repos.d/CentOS-Base.repo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 三.切换到目录/etc/yum.r...
  • centos6.5更换163yum

    2016-05-25 00:39:13
    1.地址为http://mirrors.163.com/.help/centos.html 2.下载镜像 [root@centos /]# cd /etc/yum.repos....[root@centos yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo备份 [root@centos yu
  • 163yum源: 1)备份当前yum源防止出现意外还可以还原回来 cd /etc/yum.repos.d/ mv /CentOS-Base.repo /CentOS-Base-repo.bak 2)下载163yum源repo文件 wget http://mirrors.163.com/.help/CentOS7-Base-163.repo 3)...
  • 163源 –阿里源 #清理缓存文件 //可以不用执行 #生成新源的元文件 //可以不用执行 #安装epel源 #查看yum源和epel源 #备份默认的yum源 [root@localhost ~]# cd /etc/yum.repos.d/ //进入yum文件目录 [root@...
  • yum 更换163

    2013-02-19 16:59:18
    1、下载CentOS-Base-163.repo, 放入/etc/yum.repos.d/ wget http://mirrors.163.com/.help/CentOS-Base-163.repo -O /etc/yum.repos.d/CentOS-Base-163.repo 2、删除缓存rm -rf /var/cache/yum/* 运行yum makecac...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 431
精华内容 172
关键字:

更换163yum