上一篇:linux自学(五)之开始centos学习,Xshell远程连接
1. 备份原来的yum源
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2. 下载阿里云的CentOS-Base.repo 到/etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3. 清理缓存
yum clean all
4. 生成新的缓存
sudo yum makecache
下面我们安装一下常用工具
- rz上传:yum -y install lrzsz
- wget在线下载:yum -y install wget
- vim编辑器:yum install vim