配置地址:/etc/yum.repos.d/CentOS-Base.repo 

更换原有源到阿里云

阿里云帮助文件地址:mirrors.aliyun.com

# 备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
# 下载新配置文件
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
# 或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

 安装命令

# 安装命令
yum install 软件名 软件名2 软件名3 ...

# 不需要输入y的安装
yum install -y 软件名 软件名2 软件名3 ...

 

相关文章:

  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2021-09-25
  • 2022-01-23
  • 2022-02-14
猜你喜欢
  • 2022-12-23
  • 2022-02-01
  • 2022-12-23
  • 2021-09-24
  • 2022-01-05
  • 2022-12-23
  • 2021-12-09
相关资源
相似解决方案