LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-03-2016, 07:14 AM   #1
Pozinux
LQ Newbie
 
Registered: Feb 2016
Location: Angers, FRANCE
Posts: 5

Rep: Reputation: Disabled
Should I remove ntpdate?


Hello,

I noticed that ntpdate is installed on my CentOS 6.

I heard that it is deprecated so should I remove it from my system and will ntpd do the work instead?

Thanks.
 
Old 02-03-2016, 09:07 AM   #2
fmattheus
Member
 
Registered: Nov 2015
Posts: 104

Rep: Reputation: 38
Check if you have a cron entry which runs ntpdate. If so remove it.

Check if ntpd is running, if not, configure it and start it

If you want to you can then remove ntpdate as well.
 
1 members found this post helpful.
Old 02-03-2016, 09:32 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
It depends on what you are using the system for.

ntpdate is available and can be used to force the system to a standard time.

ntpd is available to maintain the system to a standard time.

It is only "depreciated" by RH/Fedora. Granted, ntpd causes laptop issues as it can keep a laptop from automatically suspending itself, and it doesn't recover well when the system clock is drastically wrong after resuming.

For any server, ntpd and ntpdate are quite useful (along with ntptime).
 
1 members found this post helpful.
Old 02-03-2016, 09:44 AM   #4
fmattheus
Member
 
Registered: Nov 2015
Posts: 104

Rep: Reputation: 38
ntpdate is deprecated. See http://support.ntp.org/bin/view/Dev/DeprecatingNtpdate . It's not just a RH/Fedora issue.
You can use 'ntpd -gq' to replicate its funtionality if you don't want the daemon running.
 
1 members found this post helpful.
Old 02-03-2016, 03:02 PM   #5
Pozinux
LQ Newbie
 
Registered: Feb 2016
Location: Angers, FRANCE
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks!

I didn't know about ntpd -gq. It's working well.

Thanks for answering my first question on this forum!
 
Old 02-04-2016, 09:07 AM   #6
Pozinux
LQ Newbie
 
Registered: Feb 2016
Location: Angers, FRANCE
Posts: 5

Original Poster
Rep: Reputation: Disabled
If I try to remove ntpdate, it will ask me if I want to remove ntpd because of dependencies. So does it mean that I shouldn't ? Or can I use rpm -e --nodeps ?

My question is more of a best practise question being quite new to linux. Thanks for teaching me.
 
Old 02-05-2016, 01:42 AM   #7
fmattheus
Member
 
Registered: Nov 2015
Posts: 104

Rep: Reputation: 38
No, don't uninstall ntpdate then. It's definitely best practice to not mess with package dependencies.
 
1 members found this post helpful.
Old 02-05-2016, 01:00 PM   #8
Pozinux
LQ Newbie
 
Registered: Feb 2016
Location: Angers, FRANCE
Posts: 5

Original Poster
Rep: Reputation: Disabled
Ok thanks so much for your answers both of you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ntpdate XXX works ; ntpdate -q XXX don't works - ntpd stays on local oudoubah Linux - Software 5 12-12-2011 07:28 AM
[SOLVED] Two questions about ntpdate skoinga Linux - Server 2 11-25-2010 06:49 AM
regarding ntpdate niaz_ph Linux - Newbie 1 01-12-2010 10:03 PM
NTPDATE will *NOT* work jon_k Linux - Software 8 01-02-2005 05:41 AM
ntpdate and port adcripps Linux - General 2 09-06-2002 04:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration