不灭的焱

革命尚未成功,同志仍须努力下载JDK17

作者:Albert.Wen  添加时间:2013-04-12 09:34:26  修改时间:2024-04-28 23:02:51  分类:Linux软件安装/参数优化  编辑

CentOS 6.x 阿里yum源(注意:已失效)

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-6.repo
yum makecache

【荐】CentOS6的yum源失效解决方案

CentOS 7.x 阿里yum源

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 makecache

 

 

参考页面:https://opsx.alibaba.com/mirror  右边的 “帮助”链接

 

命令参考:

  1. yum search  softwarename  查找软件
  2. yum list  softwarename  列出已装软件
  3. yum install  softwarename  安装软件
  4. yun remove  softwarename  卸载软件