溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

各種yum源

發(fā)布時(shí)間:2020-06-26 19:10:02 來源:網(wǎng)絡(luò) 閱讀:623 作者:王磊133 欄目:大數(shù)據(jù)


 

centos      redhat

一般163的源比較好用

1,進(jìn)入yum源配置目錄
cd /etc/yum.repos.d

2,備份系統(tǒng)自帶的yum源
mv CentOS-Base.repo CentOS-Base.repo.bk
下載163網(wǎng)易的yum源:
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

3,更新玩yum源后,執(zhí)行下邊命令更新yum配置,使操作立即生效
yum makecache

4,除了網(wǎng)易之外,國內(nèi)還有其他不錯(cuò)的yum源,比如中科大和搜狐的,大家可以根據(jù)自己需求下載
中科大的yum源:
wget http://centos.ustc.edu.cn/CentOS-Base.repo
sohu的yum源
wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo

理論上講,這些yum源redhat系統(tǒng)以及fedora也是可以用 的


[base]

name=CentOS-$releasever - Base

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os

#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


#released updates

[updates]

name=CentOS-$releasever - Updates

# 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

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os

#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


#released updates

[updates]

name=CentOS-$releasever - Updates

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates

#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


#additional packages that may be useful

[extras]

name=CentOS-$releasever - Extras

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras

#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-$releasever - Plus

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus

#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


#contrib - packages by Centos Users

[contrib]

name=CentOS-$releasever - Contrib

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib

#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


ubantu

deb http://cn.archive.ubuntu.com/ubuntu/ trusty main restricted

deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty main restricted

deb http://cn.archive.ubuntu.com/ubuntu/ trusty-updates main restricted

deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-updates main restricted

deb http://cn.archive.ubuntu.com/ubuntu/ trusty universe

deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty universe

deb http://cn.archive.ubuntu.com/ubuntu/ trusty-updates universe

deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-updates universe

deb http://cn.archive.ubuntu.com/ubuntu/ trusty multiverse

deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty multiverse

deb http://cn.archive.ubuntu.com/ubuntu/ trusty-updates multiverse

deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-updates multiverse

deb http://cn.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

deb-src http://cn.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse


deb http://security.ubuntu.com/ubuntu trusty-security main restricted

deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted

deb http://security.ubuntu.com/ubuntu trusty-security universe

deb-src http://security.ubuntu.com/ubuntu trusty-security universe

deb http://security.ubuntu.com/ubuntu trusty-security multiverse

deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse


apt-get update



suse

目前還沒有找到,有沒有熱心的朋友提供

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI