Ways to Uninstall or Install openntpd on Ubuntu 22.04

Updated: September 21, 2022

NTP, the Network Time Protocol, is used to keep the computer clocks synchronized. It provides the ability to sync the local clock to remote NTP servers and can act as NTP server itself, redistributing the local clock. In this tutorial, I will show you how to install openntpd on Ubuntu 22.04.

Prerequisites to install

  • OS: Ubuntu 22.04 is needed for openntpd to work
  • Privileges: Verify that you can execute the sudo commands line.

Prerequisites to install openntpd on Ubuntu 22.04

Install openntpd Ubuntu 22.04

openntpd is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one that you think is easy and you can follow.

Install openntpd using APT

This is a popular method for installing any Ubuntu packages because it is simple to understand, even if you are a Linux beginner. Following these instructions to get openntpd on your Ubuntu 22.04.

Step 1: Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install openntpd Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt-get install openntpd

Install openntpd using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already done so, run this command to install it.

sudo apt-get install aptitude

After that, you can now install openntpd by following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. You can now install openntpd Ubuntu by executing this command in the terminal.

sudo aptitude -y install openntpd

Uninstall openntpd on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just openntpd.

If you installed openntpd using APT or Aptitude, you could uninstall openntpd on Ubuntu by running this command

sudo apt remove --auto-remove openntpd

To uninstall openntpd and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge openntpd


In this tutorial, I showed you ways to install openntpd on Ubuntu 22.04 and ways to uninstall openntpd too. Please contact me if you require any assistance. I’d be delighted to respond.