常用的第三方yum源apt源及配置

2022-03-21 20:02:25 字數 4545 閱讀 7217

根據自己的系統版本選擇複製貼上執行即可

# 163yum源:(centos5、6、7版本)

# 阿里雲yum源(centos5、6、7版本)

#清除快取,生成本地快取,下次安裝速度快

yum clean all && yum makecache

ubuntu各版本更換apt源

mv /etc/apt/sources.list /etc/apt/sources.list.bak

# 更改阿里源

首先備份本地的源

cp /etc/apt/sources.list /etc/apt/sources.list.bak-`date +%f`

#修改檔案 刪除原有內容,新增下面內容

# 更新apt源,讀取新apt源到本地

apt updata

# 更新本地所有軟體包

apt upgrade

常用的第三方yum源apt源及配置

根據自己的系統版本選擇複製貼上執行即可 163yum源 centos5 6 7版本 cd etc yum.repos.d wget wget wget 阿里雲yum源 centos5 6 7版本 centos 5 wget o etc yum.repos.d aliyun centos5 base....

常用第三方yum源倉庫位址及配置

根據自己的系統版本選擇複製貼上執行即可 163yum源 centos5 6 7版本 cd etc yum.repos.d wget wget wget 阿里雲yum源 centos5 6 7版本 centos 5 wget o etc yum.repos.d aliyun centos5 base....

centos 第三方源

最後附上第三方源 centos由於很追求穩定性,所以官方源中自帶的軟體不多,因而需要一些第三方源,比如epel atrpms elrepo nux dextop repoforge等。epel epel即extra packages for enterprise linux,為centos提供了額外...