1. 删除旧有yum源
cd /etc/yum.repos.d
rm -f *
2. 更新yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
——————————————————————
yum list|grep 包名//查询可安装
yum repolist enabled | grep 包名//查询未安装
基础软件:
yum install -y net-tools
yum install -y unzip zip
yum install -y lrzsz
yum install -y psmisc
yum install -y gcc-c++
yum install -y vim
yum install -y redhat-lsb
yum install -y openssh-server
yum -y update #包括内核
网友评论