CentOS、Ubuntu、Debian依赖源配置
CentOS 7 yum源[*]rm -rf /etc/yum.repos.d/*.repo #删除repo文件,或者自己备份
[*]curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[*]curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
[*]yum makecache #更新缓存复制代码
CentOS 6 yum源
[*]rm -rf /etc/yum.repos.d/*.repo #删除repo文件,或者自己备份
[*]curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
[*]curl -o/etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
[*]yum makecache #更新缓存复制代码
Ubuntu 18 apt源
[*]mv /etc/apt/sources.list{,bak} #备份sources.list
[*]cat > /etc/apt/sources.list 复制代码
Ubuntu 16 apt源
[*]mv /etc/apt/sources.list{,bak} #备份sources.list
[*]cat > /etc/apt/sources.list 复制代码
Debian 9 apt源
[*]mv /etc/apt/sources.list{,bak} #备份sources.list
[*]cat > /etc/apt/sources.list 复制代码
Debian 8 apt源
[*]mv /etc/apt/sources.list{,bak} #备份sources.list
[*]cat > /etc/apt/sources.list 复制代码
页:
[1]