CentOS8更新时间/更新yum源

作者: oldboy 分类: IDC,Yum 发布时间: 2022-07-26 15:45

在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

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

标签云