CentOSのはYUMソースを設定します

一般的なミラー

清華大学
https://mirrors.tuna.tsinghua.edu.cn/help/centos/
マニュアルストレージの必要性を生成した後

浙江大学
http://mirrors.zju.edu.cn
マニュアルストレージの必要性を生成した後

重慶大学
http://mirrors.cqu.edu.cn/repo/centos/Centos-5.repo
http://mirrors.cqu.edu.cn/repo/centos/Centos-6.repo
HTTP://ミラー。 cqu.edu.cn/repo/centos/Centos-7.repo
http://mirrors.cqu.edu.cn/repo/centos/Centos-8-repo/CentOS-Base.repo
HTTP://mirrors.cqu。 edu.cn/repo/centos/Centos-8-repo/CentOS-Extras.repo
http://mirrors.cqu.edu.cn/repo/centos/Centos-8-repo/CentOS-AppStream.repo

アリババ
http://mirrors.aliyun.com/repo/Centos-5.repo
http://mirrors.aliyun.com/repo/Centos-6.repo
http://mirrors.aliyun.com/repo/Centos- 7.repoは
また、変更することができ
SED -i -e '/mirrors.cloud.aliyuncs.com/d' -e ' /mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo

东软大学
のsed -e "S / ^ミラーリスト/#ミラーリスト/ gの" -e "S /#BASEURL / BASEURL / gの" -e "S / mirror.centos.org / mirrors.neusoft.edu.cn /グラム" -私/etc/yum.repos.d/CentOS-Base.repo

網易
http://mirrors.163.com/.help/CentOS5-Base-163.repo
http://mirrors.163.com/.help/CentOS6-Base-163.repo
http://mirrors.163.com /.help/CentOS7-Base-163.repo


バックアップ

  • mkdir /etc/yum.repos.d/bak.d
  • MV /etc/yum.repos.d/*.repo /etc/yum.repos.d/bak.d/

ISO

ネットワークが接続されていない場合、ソースは、ISOイメージに配置されてもよいYUM

  • 使用AUTOFSは自動的にISO CDをマウント
  • VI /etc/yum.repos.d/iso.repo
    [ISO]
    名=イソ
    BASEURL = ファイル:///のmisc / CD
    gpgcheck = 0
  • yumをきれいにすべての
  • yumをmakecache

シングルソース

  • ダウンロード元YUM REPOファイルのバージョンに応じて、
  • MV?の.repo /etc/yum.repos.d/CentOS-Base.repo
  • yumをきれいにすべての
  • yumをmakecache

複数のソース

などYUMソースをダウンロードすることを選択したバージョンに応じて、

  • LL /etc/yum.repos.d/
    -rw-rを- r--の。1つのルートルート1572年11月17日午前3時14分CentOSに-7.mirrors.163.com.repo
    -rw-R - r--の。1つのルートルート2523年11月17日午前1時46 CentOSに-7.mirrors.aliyun.com.repo
    -rw-R - r--の。1つのルートルート2473年11月17日1時45 CentOSに-7.mirrors.cqu.edu.cn.repo
    -rw-R - r--の。1つのルートルート1684年11月17日午前3時10 CentOSに-7.mirrors.neusoft.edu.cn.repo
    -rw-R - r--の。1つのルートルート1698年11月17日午前0時55 CentOSに-7.mirrors.tuna.tsinghua.edu.cn.repo
    -rw-R - r--の。1つのルートルート542 11月17日午後12時37分CentOSに-7.mirrors.zju.edu.cn.repo
  • fastestmirror YUM-YUMインストール
    fastestmirrorプラグインに自動的に選択されます最速のミラーを
  • 猫/etc/yum/pluginconf.d/fastestmirror.confの
    プロフィール
  • 検索/ -name timedhosts.txt
    /var/cache/yum/x86_64/7/timedhosts.txtスピードテストレコードファイル
  • yumをきれいにすべての
  • yumをmakecache

おすすめ

転載: www.cnblogs.com/dailycode/p/11879706.html