首页 > 学院 > 操作系统 > 正文

更换yum源脚本

2024-06-28 16:01:04
字体:
来源:转载
供稿:网友
 
#!/bin/sh#Enter the yum configuration file directorycd /etc/yum.repos.d/#Backup configuration filebase_file=CentOS-Base.repoif [ -f "base_file" ];then  mv CentOS-Base.repo CentOS-Base.repo.bakfi#download 163 configuration filewget http://mirrors.163.com/.help/CentOS6-Base-163.repo#change 163 configuration file become base_configurationdown_file=CentOS6-Base-163.repoif [ -f "down_file" ];then  mv CentOS6-Base-163.repo CentOS-Base.repoelse echo "Down 163 configuration fail ->Fail" fi#update yum infoyum update
上一篇:mysql5.7安装配置

下一篇:web gzip压缩

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表