基础文章之CentOS,Ubuntu,Debian软件源配置 您所在的位置:网站首页 debian桌面系统本地源安装软件 基础文章之CentOS,Ubuntu,Debian软件源配置

基础文章之CentOS,Ubuntu,Debian软件源配置

#基础文章之CentOS,Ubuntu,Debian软件源配置| 来源: 网络整理| 查看: 265

原标题:基础文章之CentOS,Ubuntu,Debian软件源配置

本文档以配置阿里云源为例,可将地址替换为其它源,如清华源地址:mirrors.tuna.tsinghua.edu.cn

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 /etc/apt/sources.list /etc/apt/sources.list /etc/apt/sources.list

责任编辑:



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有