How to Install or Uninstall coturn on Ubuntu 22.04

Updated: September 18, 2022

STUN (Session Traversal Utilities for NAT) and TURN (Traversal Using Relays around NAT) are protocols that can be used to provide NAT traversal for VoIP and WebRTC. This package provides a VoIP media traffic NAT traversal server and gateway. I will show you how to install coturn on Ubuntu 22.04 in this tutorial.

Requirements to install

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Check that you can run sudo commands.

Prerequisites to install coturn on Ubuntu 22.04

Install coturn Ubuntu 22.04

coturn 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 you believe is simple and easy to follow.

Install coturn 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 coturn on your Ubuntu.

Step 1: Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt-get update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install coturn Ubuntu by executing this command in the terminal.

sudo apt install coturn

Install coturn using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt -y install aptitude

Then, you can now install coturn by following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Launching the terminal and entering the following Linux command:

sudo apt-get update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install coturn Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude -y install coturn

Uninstall coturn on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a coturn, can be easily uninstalled by anyone.

You can uninstall coturn on Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove coturn

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

sudo apt autoremove --purge coturn


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