How To Install dcmtk on AlmaLinux 8

In this tutorial we learn how to install dcmtk in AlmaLinux 8. dcmtk is Offis DICOM Toolkit (DCMTK)

Introduction

In this tutorial we learn how to install dcmtk on AlmaLinux 8.

What is dcmtk

DCMTK is a collection of libraries and applications implementing large parts the DICOM standard. It includes software for examining, constructing and converting DICOM image files, handling offline media, sending and receiving images over a network connection, as well as demonstrative image storage and worklist servers. DCMTK is is written in a mixture of ANSI C and C++. It comes in complete source code and is made available as “open source” software. This package includes multiple fixes taken from the “patched DCMTK” project. Install DCMTK if you are working with DICOM format medical image files.

We can use yum or dnf to install dcmtk on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install dcmtk.

Install dcmtk on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install dcmtk using dnf by running the following command:

sudo dnf -y install dcmtk

Install dcmtk on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install dcmtk using yum by running the following command:

sudo yum -y install dcmtk

How To Uninstall dcmtk on AlmaLinux 8

To uninstall only the dcmtk package we can use the following command:

sudo dnf remove dcmtk

References

Summary

In this tutorial we learn how to install dcmtk on AlmaLinux 8 using yum and dnf.