在我的Centos 6.5中,我想安装chrony
# yum install chrony
我收到以下错误
已加载的插件:fastermirror从缓存的主机文件加载镜像速度设置安装过程没有可用的包chrony。错误:无事可做
如何在Centos 6.5上安装Chrony?
我非常感谢您在解决这个问题时能给我的任何帮助。
听起来你错过了安装中的base.repo
。
Available Packages
Name : chrony
Arch : x86_64
Version : 2.1.1
Release : 2.el6_8
Size : 266 k
Repo : base
Summary : An NTP client/server
URL : http://chrony.tuxfamily.org
License : GPLv2
Description : A client/server for the Network Time Protocol, this program keeps your
: computer's clock accurate. It was specially designed to support
: systems with intermittent internet connections, but it also works well
: in permanently connected environments. It can use also hardware reference
: clocks, system real-time clock or manual input as time references.
听起来你可能错过了配置中的'CentOS-Base'回购。签入/etc/yum.repos.d/CentOS-Base.repo
如果它不存在则创建它并添加以下配置块;
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
您也可以通过http://rpm.pbone.net找到包裹