找回密码
 立即注册
CeraNetworksBGVM服务器主机交流IP归属甄别会员请立即修改密码
查看: 8|回复: 0

CentOS、Ubuntu、Debian依赖源配置

[复制链接]

81

主题

8

回帖

665

积分

高级会员

积分
665
发表于 2023-11-3 19:57:54 | 显示全部楼层 |阅读模式
CentOS 7 yum源
[ol]
  • 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 #更新缓存[/ol]复制代码
    CentOS 6 yum源

    [ol]
  • 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 #更新缓存[/ol]复制代码

    Ubuntu 18 apt源
    [ol]
  • mv /etc/apt/sources.list{,bak} #备份sources.list
  • cat > /etc/apt/sources.list 复制代码

    Ubuntu 16 apt源
    [ol]
  • mv /etc/apt/sources.list{,bak} #备份sources.list
  • cat > /etc/apt/sources.list 复制代码
    Debian 9 apt源
    [ol]
  • mv /etc/apt/sources.list{,bak} #备份sources.list
  • cat > /etc/apt/sources.list 复制代码

    Debian 8 apt源
    [ol]
  • mv /etc/apt/sources.list{,bak} #备份sources.list
  • cat > /etc/apt/sources.list 复制代码
  • 回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|HS2V主机综合交流论坛

    GMT+8, 2024-4-29 10:13 , Processed in 0.068585 second(s), 3 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表