Installing chrony on Ubuntu 17.04 LTS

Example of installing chrony on Ubuntu 17.04 LTS using the command sudo apt-get install chrony.


 

Ads

Quick installation of chrony:

Step 1: Update system:

	sudo apt-get update

Step 2: Install: chrony

Ater updaing the OS run following command to install the packae:

	sudo apt-get install chrony

Package Details

Package:chrony
Version:2.4.1-2
Maintainer:Ubuntu Developers
Home page:https://chrony.tuxfamily.org
Description:Versatile implementation of the Network Time Protocol It consists of a pair of programs: . chronyd: This is a daemon which runs in background on the system. It obtains measurements (e.g. via the network) of the system's offset relative to other systems and adjusts the system time accordingly. For isolated systems, the user can periodically enter the correct time by hand (using 'chronyc'). In either case 'chronyd' determines the rate at which the computer gains or loses time, and compensates for this. Chronyd implements the NTP protocol and can act as either a client or a server. . chronyc: This is a command-line driven control and monitoring program. An administrator can use this to fine-tune various parameters within the daemon, add or delete servers etc whilst the daemon is running.
Distro:Ubuntu 17.04
Release:
Repo/Section:universe/admin

How to install chrony on Ubuntu 17.04?

First of all update your system with the command:

sudo apt-get update

Ads

Above command will download the package lists for Ubuntu 17.04 on your system. This will update the list of newest versions of packages and its dependencies on your system.

After downloading the latest package list with the help of above you can run the installation process.

If chrony is not installed on your compter then the command 'dpkg -L chrony' will give followin error.

deepak@deepak-VirtualBox:~$ dpkg -L chrony
dpkg-query: package 'chrony' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
deepak@deepak-VirtualBox:~$ 

Installing chrony:

After system update use the following command to install chrony:

sudo apt-get install chrony

Above command will confirm before installing the package on your Ubuntu 17.04 Operating System. If you are not already logged in as su, installer will ask you the root password. After completion of the installation you can use the package on your system.

How to uninstall/remove chrony from Ubuntu 17.04?

Now we will see the commands for uninstalling the chrony from Ubuntu 17.04. For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System.

To remove the chrony following command is used:

sudo apt-get remove  chrony

Following command is used to remove the chrony package along with its dependencies:

sudo apt-get remove --auto-remove chrony

This will remove chrony and all its dependent packages which is no longer needed in the system.

Completely removing chrony with all configuration files:

Following command should be used with care as it deletes all the configuration files and data:

sudo apt-get purge chrony

or you can use following command also:

sudo apt-get purge --auto-remove chrony

Above command will remove all the configuration files and data associated with chrony package. You can can't recover the delete data, so, use this command with care.