How To Install medcon on Ubuntu 22.04
Introduction
In this tutorial we learn how to install medcon
on Ubuntu 22.04.
What is medcon
medcon is:
This project stands for Medical Image Conversion. Released under the (L)GPL, it comes with the full C-source code of the library, a flexible command line utility and a neat graphical front-end using the GTK+ toolkit. The currently supported formats are: Acr/Nema 2.0, Analyze (SPM), DICOM 3.0, InterFile 3.3 and PNG.
The program also allows one to read unsupported files without compression, to print pixel values or to extract/reorder specified images. It is possible to retrieve the raw binary/ascii image arrays or to write PNG for desktop applications.
This is the command line tool for batch processing.
There are three methods to install medcon
on Ubuntu 22.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 medcon Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install medcon
using apt-get
by running the following command:
sudo apt-get -y install medcon
Install medcon Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install medcon
using apt
by running the following command:
sudo apt -y install medcon
Install medcon 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 medcon
using aptitude
by running the following command:
sudo aptitude -y install medcon
How To Uninstall medcon on Ubuntu 22.04
To uninstall only the medcon
package we can use the following command:
sudo apt-get remove medcon
Uninstall medcon And Its Dependencies
To uninstall medcon
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove medcon
Remove medcon Configurations and Data
To remove medcon
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge medcon
Remove medcon configuration, data, and all of its dependencies
We can use the following command to remove medcon
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge medcon
References
Summary
In this tutorial we learn how to install medcon
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.