0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ntpd が yum インストールできないときにまず初めに見る記事【CentOS7】

Posted at

ntpd が yum インストールできないときにまず初めに見る記事【CentOS7】

# yum install ntpd
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
 * base: ftp.tsukuba.wide.ad.jp
 * extras: ftp.tsukuba.wide.ad.jp
 * updates: ftp.tsukuba.wide.ad.jp
base                                                                                                                                                               | 3.6 kB  00:00:00     
extras                                                                                                                                                             | 2.9 kB  00:00:00     
updates                                                                                                                                                            | 2.9 kB  00:00:00     
(1/4): base/7/x86_64/primary_db                                                                                                                                    | 6.1 MB  00:00:00     
(2/4): extras/7/x86_64/primary_db                                                                                                                                  | 243 kB  00:00:00     
(3/4): base/7/x86_64/group_gz                                                                                                                                      | 153 kB  00:00:01     
(4/4): updates/7/x86_64/primary_db                                                                                                                                 |  13 MB  00:00:09     
No package ntpd available.
Error: Nothing to do

なにー!?
もしかして時間関係はchronydが完全標準なのか・・・!?!?
と思って仕方なくソースビルドしようと思い、
$ cd /usr/local/src/に移動したときに、、、
ギリギリ思い出した。

答え : yum install ntpd ではなく yum install ntp

# yum install ntp 
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: ftp.tsukuba.wide.ad.jp
 * extras: ftp.tsukuba.wide.ad.jp
 * updates: ftp.tsukuba.wide.ad.jp
Resolving Dependencies
--> Running transaction check
---> Package ntp.x86_64 0:4.2.6p5-29.el7.centos.2 will be installed
--> Processing Dependency: ntpdate = 4.2.6p5-29.el7.centos.2 for package: ntp-4.2.6p5-29.el7.centos.2.x86_64
--> Processing Dependency: libopts.so.25()(64bit) for package: ntp-4.2.6p5-29.el7.centos.2.x86_64
--> Processing Dependency: libedit.so.0()(64bit) for package: ntp-4.2.6p5-29.el7.centos.2.x86_64
--> Running transaction check
---> Package autogen-libopts.x86_64 0:5.18-5.el7 will be installed
---> Package libedit.x86_64 0:3.0-12.20121213cvs.el7 will be installed
---> Package ntpdate.x86_64 0:4.2.6p5-29.el7.centos.2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================================================================================
 Package                                        Arch                                  Version                                                   Repository                           Size
==========================================================================================================================================================================================
Installing:
 ntp                                            x86_64                                4.2.6p5-29.el7.centos.2                                   base                                549 k
Installing for dependencies:
 autogen-libopts                                x86_64                                5.18-5.el7                                                base                                 66 k
 libedit                                        x86_64                                3.0-12.20121213cvs.el7                                    base                                 92 k
 ntpdate                                        x86_64                                4.2.6p5-29.el7.centos.2                                   base                                 87 k

Transaction Summary
==========================================================================================================================================================================================
Install  1 Package (+3 Dependent packages)

Total download size: 794 k
Installed size: 1.9 M
Is this ok [y/d/N]: 

ホッ・・・

CentOS Stream 8 ではダメでした

CentOS Stream 8 , Rocky Linux で試したら、dnf install はできませんでした。
サポートされなくなって、リポジトリから消え去ったんですね。
【参考】NTPに変わるChronyって何が変わったの?
やはりchronyが標準ということか、、

感想

LPIC-1 の勉強をしてた時によく出てきたchronyd, ntpd, ntpdate ですが、
実務では詳しく触ることはあまりないですね、、
サーバ起動時にansible や puppet でちょちょっと自動化されてるので、
こういう久しぶりにインストールするってなったときに焦りますね。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?