centos6安装软件命令
时间: 2023-09-14 22:04:24 浏览: 178
回答: 在CentOS 6系统中,由于最近CentOS 6已经停止更新支持,同时官方也把yum源删除了,因此使用yum命令安装软件包基本都是失败的。为了解决这个问题,您可以通过以下操作来更换yum源为CentOS的Vault源(包括CentOS官方和阿里云的源):
1. 在ssh界面执行以下命令:
```shell
wget -O /etc/yum.repos.d/CentOS-Base.repo http://files.tttidc.com/centos6/Centos-6.repo
wget -O /etc/yum.repos.d/epel.repo http://files.tttidc.com/centos6/epel-6.repo
yum makecache
```
这样就可以一键更换yum源了。
阅读全文
相关推荐


















