How To Install ctn-dev on Ubuntu 18.04

In this tutorial we learn how to install ctn-dev on Ubuntu 18.04. ctn-dev is Development files for Central Test Node, a DICOM implementation

Introduction

In this tutorial we learn how to install ctn-dev on Ubuntu 18.04.

What is ctn-dev

ctn-dev is:

DICOM is the standard for image storage, annotation, and networking. It is used widely for medical imaging.

This package includes the header files and static library used for creating programs that use the CTN library.

There are three methods to install ctn-dev on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ctn-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ctn-dev using apt-get by running the following command:

sudo apt-get -y install ctn-dev

Install ctn-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ctn-dev using apt by running the following command:

sudo apt -y install ctn-dev

Install ctn-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ctn-dev using aptitude by running the following command:

sudo aptitude -y install ctn-dev

How To Uninstall ctn-dev on Ubuntu 18.04

To uninstall only the ctn-dev package we can use the following command:

sudo apt-get remove ctn-dev

Uninstall ctn-dev And Its Dependencies

To uninstall ctn-dev and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove ctn-dev

Remove ctn-dev Configurations and Data

To remove ctn-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ctn-dev

Remove ctn-dev configuration, data, and all of its dependencies

We can use the following command to remove ctn-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ctn-dev

References

Summary

In this tutorial we learn how to install ctn-dev package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.