1、安装wget
yum -y install wget
2、配置yum阿里云、163和epl
将 /etc/yum.repo.d/ 下的repo文件封存
mv *.repo repo_bak/
下载阿里云和163的repo文件
[root@bogon yum.repos.d]# wget http://mirrors.aliyun.com/repo/Centos-7.repo
[root@bogon yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
清除缓存和重建缓存
yum clean all
yum makecache
安装epel源
yum list | grep epel-release
下载阿里云epel源
wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo
清除缓存和重建缓存
yum clean all
yum makecache
.查看系统可用的yum源和所有的yum源
yum repolist enabled
yum repolist all
3、 安装net-tools
安装net-tools
yum -y install net-tools
安装vim
yum -y install vim*
安装工具
yum -y install tree zip unzip ntp
这篇博客介绍了如何在CentOS系统中安装wget并配置阿里云、163和EPEL的yum源。首先,通过yum安装wget,然后备份原有repo文件,下载并启用阿里云和163的repo配置,安装EPEL源。接着,安装了net-tools、vim以及一些常用工具,如tree、zip、unzip和ntp。
672

被折叠的 条评论
为什么被折叠?



