修改你的Centos yum源为国内163的

CentOS 163 yum源使用:

1、先备份 /etc/yum.repos.d/CentOS-Base.repo

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

2、进入 http://mirrors.163.com/.help/centos.html 下载 CentOS6-Base-163.repo,放入 /etc/yum.repos.d/ 。

cd /etc/yum.repos.d/
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

3、运行 yum makecache 生成缓存

其他命令参考:

1、yum search softwarename 查找软件

2、yum list softwarename 列出已装软件

3、yum install softwarename 安装软件

4、yun remove softwarename 卸载软件

发表回复