How To Install spd on Debian 9

In this tutorial we learn how to install spd on Debian 9. spd is Synchrotron image corrections and azimuthal integration

Introduction

In this tutorial we learn how to install spd on Debian 9.

What is spd

spd is:

SPD stands for SPatial Distortion. Written in C language, this command-line driven program deals with images coming from X-ray diffusion/diffraction experiments. It does subsequently: *intensity corrections (dark current, flat field correction, …), *geometry corrections using spline files or a pair of distortion arrays, *azimuthal integration in 2D or 1D after maskin defective pixels. SPD was originally written by Jorg Klora for ESRF and was re-written by Peter Boesecke. Maintenance and packaging of the program are provided by Rainer Wilcke and Jerome Kieffer from software group at ESRF.

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

Install spd Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install spd

Install spd Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install spd

Install spd 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 spd using aptitude by running the following command:

sudo aptitude -y install spd

How To Uninstall spd on Debian 9

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

sudo apt-get remove spd

Uninstall spd And Its Dependencies

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

sudo apt-get -y autoremove spd

Remove spd Configurations and Data

To remove spd configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge spd

Remove spd configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge spd

Dependencies

spd have the following dependencies:

References

Summary

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