【CentOS】- yum update

发布时间 2023-12-15 10:55:19作者: 迷你胡丶
// 进入 yum 的 repos 目录
cd /etc/yum.repos.d/

// 修改 centos 文件内容
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

// 生成缓存更新
yum makecache

// 运行 yum update
yum update -y

 

如果系统mini安装,存在没有make的情况,手动安装make

yum -y install gcc automake autoconf libtool make