How To Install heudiconv on Debian 12

Learn how to install heudiconv on Debian 12 with this tutorial. heudiconv is DICOM converter with support for structure heuristics

Introduction

In this tutorial we learn how to install heudiconv on Debian 12.

What is heudiconv

heudiconv is:

This is a flexible dicom converter for organizing brain imaging data into structured directory layouts. It allows for flexible directory layouts and naming schemes through customizable heuristics implementations. It only converts the necessary dicoms, not everything in a directory. It tracks the provenance of the conversion from dicom to nifti in w3c prov format.

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

Install heudiconv Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install heudiconv

Install heudiconv Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install heudiconv using apt by running the following command:

sudo apt -y install heudiconv

Install heudiconv 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install heudiconv

How To Uninstall heudiconv on Debian 12

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

sudo apt-get remove heudiconv

Uninstall heudiconv And Its Dependencies

To uninstall heudiconv and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove heudiconv

Remove heudiconv Configurations and Data

To remove heudiconv configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge heudiconv

Remove heudiconv configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge heudiconv

Dependencies

heudiconv have the following dependencies:

References

Summary

In this tutorial we learn how to install heudiconv package on Debian 12 using different package management tools: apt, apt-get and aptitude.