1. 程式人生 > >RedHat6.5 更換Yum源

RedHat6.5 更換Yum源

5.執行安裝
rpm -ivh yum-*
如果出現

error: Failed dependencies:
        python-urlgrabber >= 3.9.1-10 is needed by yum-3.2.29-73.el6.centos.noarch

不要慌,這個問題很噁心會導致後面安裝前功盡棄,使用下面
rpm -Uvh python-urlgrabber-3.9.1-11.el6.noarch.rpm
更新rpm -Uvh python-urlgrabber版本,不更新肯定安裝不過去
在執行:
rpm -ivh yum-*

warning
: yum-3.2.29-73.el6.centos.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY Preparing... ########################################### [100%] 1:yum-metadata-parser ########################################### [ 20%] 2:yum-plugin-fastestmirro##############################
############# [ 40%] 3:yum ########################################### [ 60%] 4:yum-updateonboot ########################################### [ 80%] 5:yum-utils ########################################### [100%]

安裝成功了
6.切換源
cd /etc/yum.repos.d/
mv redhat.repo redhat.repo.bak
mv rhel-source.repo rhel-source.repo.bak
vi /etc/yum.repos.d/CentOS-Base.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-6 - Base - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os
baseurl=http://mirrors.163.com/centos/7/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6.5

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

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

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

8.清理快取
yum clean all

yum makecache

9.驗證

yum install telnet

相關推薦

redhat6.5更換YUM。20180918更新版

它寫的有些過時了,有些東西已經發生的改變。 1.檢查yum包 rpm -qa |grep yum  2.刪除自帶包  《rpm -aq | grep yum | xargs rpm -e –nodeps 》 這條命令不能用 [[email protec

RedHat6.5 更換Yum

5.執行安裝 rpm -ivh yum-* 如果出現 error: Failed dependencies: python-urlgrabber >= 3.9.1

Redhat6.5更改yum

redhat預設自帶的yum源需要註冊,才能更新,報錯:This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register

redhat6.5更換為contos 的yum

redhat預設自帶的yum源需要註冊,才能更新,報錯: This system is not registered to Red Hat Subscription Management. You can use subscription-manager

解除安裝redhat6.5yum,安裝centos6的yum,配置第三方yum

redhat的yum線上更新是收費的,如果沒有註冊的話不能使用,如果要使用,需將redhat的yum解除安裝後,重啟安裝其他yum源,再配置其他源. 本文包括配置本地源及第三方源。第三方源包括:網易,epel,repoforge ,rpmfusion 以下為詳細

Redhat6.5--解決yum功不能正常使用和配置YUM

虛擬機器資源 網上大致看了下,用vm比較多,系統版本選擇的是Redhat6.5。具體安裝過程就不說了,網上比較多。 分享一下資源(redhat6.5+vmware): 連結:http://pan.baidu.com/s/1c1Vl6ms 密碼:gu1b 解決yum功能不能

Centos 6.5更換yum為阿里和網易的

源所在的目錄:     /etc/yum.repos.d/    在更換之前可以先備份自己的源,防止出錯,Centos 5.X 安裝阿里或者網易的源wget -O /etc/yum.repos.d/C

Linux 更換 Yum

linux修改Centos系統Yum源更換1.首先備份系統自帶Yum源配置文件/etc/yum.repos.d/CentOS-Base.repo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup2.進入

60.更換Yum

第一步 repo mirrors oca 提示 iyu sta 擴展 fast 註:有一些yum源提供的軟件不全或者下載的速度 就比如國外的。。。 更換yum源 相關命令 wgetrm cp 案例 第一步 cp -rf /etc/yum.repos.d /bf/PS:對

開發環境——RHEL7更換yum

RHEL7 更換yum源開發環境——RHEL7更換yum源 一、刪除RHN註冊和訂閱提示 查找subscription-manager相關組件:rpm -qa|grep subscription-manager刪除subscription-manager相關組件:sudo yum remove subscri

更換yum、創建本地yum

配置 本地yum yun 實驗 2.6 備份 下載 base file 系統版本: [root@centos67d1 ~]# cat /etc/redhat-release CentOS release 6.7 (Final) [root@centos67d1 ~]# u

雙系統Redhat 7.5更新yum(centos)+gcc安裝

Redhat 7.5更新yum元 redhat 7.5 更新centos yum源 安裝步驟(必須有網) 1. **檢視系統自帶的yum源並刪除** 2. **去網路源下載rpm包** 3.安裝下載的yum源(找到

CentOS 更換yum為阿里

使用vim檢視yum源: [[email protected] ~]# vim /etc/yum.repos.d/CentOS-Base.repo 本文以CentOS 7 為例,下載阿里雲yum源到/etc/yum.repos.d資料夾下: 進入/etc/yum.repos.

red hat 6.5 配置yum

轉載於:https://blog.csdn.net/qq_29963431/article/details/52564726 今天準備在自己的虛擬機器配置一下yum源,在網上各種找教程,但是因為相容性的問題還有一些下載地址錯誤,一直裝不好,決定自己記錄一下。 我的虛擬機器是red h

CentOS 7.5 使用 yum 安裝 Kubernetes 叢集(二)

一、安裝方式介紹 1、yum 安裝 目前CentOS官方已經把Kubernetes源放入到自己的預設 extras 倉庫裡面,使用 yum 安裝,好處是簡單,壞處也很明顯,需要官方更新 yum 源才能獲得最新版本的軟體,而所有軟體的依賴又不能自己指定,尤其是你的作業系統版本如果低的話,使用 yum 源安裝

CentOS 7.5 使用 yum 安裝 Kubernetes 集群(二)

host ats water count bytes 通信 lis cdc 功能 一、安裝方式介紹 1、yum 安裝 目前CentOS官方已經把Kubernetes源放入到自己的默認 extras 倉庫裏面,使用 yum 安裝,好處是簡單,壞處也很明顯,需要官方更新 yum

CentOS 7.5 使用 yum 安裝 Kubernetes 叢集主要元件說明

1、Master元件 Master元件提供叢集的管理控制中心。 Master元件可以在叢集中任何節點上執行。但是為了簡單起見,通常在一臺VM/機器上啟動所有Master元件,並且不會在此VM/機器上執行使用者容器 kube-apiserverkube-apiserver用於暴露Kubernetes AP

-bash: /usr/bin/yum: No such file or directory 更換yum

一般是因為執行"rpm -aq|grep yum|xargs rpm -e --nodeps"命令之後將系統預設的yum功能刪除 我遇到這個問題時是為了解決紅帽7 yum沒註冊無法使用yum源的情況,所以就執行了上面刪除的命令 所以接下來我打算更換centos7的yu

CentOS7更換yum為阿里

備份 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.al

CentOS 5.7 yum配置

centos 5.7算是比較老的了,163和阿里都已不支援了,centos官網還是可以用的,具體配置如下: [[email protected] /]# cd /etc/yum.repos.d [[email protected] yum.repos.d