国产成人v爽在线免播放观看,日韩欧美色,久久99国产精品久久99软件,亚洲综合色网站,国产欧美日韩中文久久,色99在线,亚洲伦理一区二区

學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 操作系統(tǒng) > Linux教程 > CentOS怎么修改yum更新源

CentOS怎么修改yum更新源

時(shí)間: 春健736 分享

CentOS怎么修改yum更新源

  為避免從國(guó)外站點(diǎn)安裝更新速度過(guò)慢,需要更改yum更新源,那么CentOS怎么修改yum更新源呢?今天學(xué)習(xí)啦小編與大家分享下CentOS修改yum更新源的具體操作步驟,有需要的朋友不妨了解下。

  CentOS修改yum更新源方法

  yum更新源配置文件:/etc/yum.repos.d/CentOS-Base.repo

  1. 在修改前先備份該文件

  cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

  2. 修改更新源配置文件(CentOS6地址,其他版本類(lèi)似)

  vim打開(kāi)配置文件:

  vim /etc/yum.repos.d/CentOS-Base.repo

  復(fù)制以下內(nèi)容粘貼到配置文件中進(jìn)行:

  # 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

  baseurl=http://mirrors.oschina.com/centos/$releasever/os/$basearch/

  gpgcheck=1

  gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

  [updates]

  name=CentOS-$releasever - Updates

  baseurl=http://mirrors.oschina.com/centos/$releasever/updates/$basearch/

  gpgcheck=1

  gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

  [addons]

  name=CentOS-$releasever - Addons

  baseurl=http://mirrors.oschina.com/centos/$releasever/addons/$basearch/

  gpgcheck=1

  gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

  [extras]

  name=CentOS-$releasever - Extras

  baseurl=http://mirrors.oschina.com/centos/$releasever/extras/$basearch/

  gpgcheck=1

  gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

  [centosplus]

  name=CentOS-$releasever - Plus

  baseurl=http://mirrors.oschina.com/centos/$releasever/centosplus/$basearch/

  gpgcheck=1

  enabled=0

  gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

  最后保存配置文件。

  3. 更新yum源配置

  yum update

  (如果不愿更新軟件,選擇N即可)

看過(guò)“CentOS怎么修改yum更新源”的人還看了:

1.CentOS 6.6系統(tǒng)怎么安裝

2.如何在CentOS系統(tǒng)中安裝搭建

3.怎么安裝Ubuntu操作系統(tǒng)

4.如何用u盤(pán)安裝linux系統(tǒng)

5.用U盤(pán)怎么安裝Linux系統(tǒng)

6.服務(wù)器上怎么安裝linux系統(tǒng)

917137