技術問題 Centos6配置yum源

2021-10-19 10:33:49 字數 1062 閱讀 3057

由於centos6已經停止更新,各yum映象已經下架了相關依賴包,需要更換yum源為參考1、參考2,具體如下:

備份原yum配置檔案

將目錄/etc/yum.repos.d下repo檔案放入repo_bak資料夾。

wget -o /etc/yum.repos.d/centos-base.repo

修改repo檔案內容:

name=centos-$releasever - updates - mirrors.aliyun.com

failovermethod=priority

baseurl=

gpgcheck=0

gpgkey=

#additional packages that may be useful

[extras]

name=centos-$releasever - extras - mirrors.aliyun.com

failovermethod=priority

baseurl=

gpgcheck=0

gpgkey=

#additional packages that extend functionality of existing packages

[centosplus]

name=centos-$releasever - plus - mirrors.aliyun.com

failovermethod=priority

baseurl=

gpgcheck=0

enabled=0

gpgkey=

#contrib - packages by centos users

[contrib]

name=centos-$releasever - contrib - mirrors.aliyun.com

failovermethod=priority

baseurl=

gpgcheck=0

enabled=0

gpgkey=

CentOS6 配置摘要

安裝必備的編譯庫 yum y installgccgcc c glibcautomake autoconf libtoolmake yum yinstalllibxslt devellibjpeg libjpeg devel libpng libpng devel freetype freetype...

CentOs6 配置網易源

linux 中安裝軟體方式有多種,比如rpm,安裝解除安裝軟體很方便,但有個小缺點,安裝軟體時可能會有依賴.參考了網上部分資料,選擇yum方式管理軟體。閒話少說,以下為具體過程 cd etc yum.repos.d wget 2 備份並替換系統的repo檔案 mv centos base.repo ...

centOS6配置靜態IP

vim etc sysconfig network scripts ifcfg eth0 device eth0 bootproto static hwaddr 00 0c 29 c5 9d 1e ipv6init yes nm controlled yes onboot yes type ethe...