CentOS8更新时间/更新yum源
在CentOS8.0中默认不再支持ntp软件包,时间同步将由chrony来实现,本文将通过wlnmp提供的源,来安装ntp服务。
添加wlnmp源
rpm -ivh http://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm
安装服务
yum install -y wntp
时间同步
#设置系统时区位亚洲/上海: timedatectl set-timezone Asia/Shanghai ntpdate 61.160.236.160
删除wlnmp源
rm -rf /etc/yum.repos.d/wlnmp-release-centos.repo
yum clean all
yum makecache
yum repolist
更新yum源(慢)
yum update -y --exclude=kernel* --exclude=centos-release* --skip-broken --nobest