How To Install python3-pdbtools on Debian 12

Learn how to install python3-pdbtools on Debian 12 with this tutorial. python3-pdbtools is tools for manipulating and editing PDB files (Python 3 package)

Introduction

In this tutorial we learn how to install python3-pdbtools on Debian 12.

What is python3-pdbtools

python3-pdbtools is:

Manipulating PDB files is often painful. Extracting a particular chain or set of residues, renumbering residues, splitting or merging models and chains, or just ensuring the file is conforming to the PDB specifications are examples of tasks that can be done using any decent parsing library or graphical interface. These, however, almost always require 1) scripting knowledge, 2) time, and 3) installing one or more programs.

pdb-tools were designed to be a swiss-knife for the PDB format. They have no external dependencies, besides the Python programming language. They are the descendant of a set of old FORTRAN77 programs that had the particular advantage of working with streams, i.e. the output of one script could be piped into another.

The philosophy of the scripts is simple: one script, one task. If you want to do two things, pipe the scripts together.

This package contains Python 3 package.

There are three methods to install python3-pdbtools 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 python3-pdbtools Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install python3-pdbtools

Install python3-pdbtools Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python3-pdbtools

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

sudo aptitude -y install python3-pdbtools

How To Uninstall python3-pdbtools on Debian 12

To uninstall only the python3-pdbtools package we can use the following command:

sudo apt-get remove python3-pdbtools

Uninstall python3-pdbtools And Its Dependencies

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

sudo apt-get -y autoremove python3-pdbtools

Remove python3-pdbtools Configurations and Data

To remove python3-pdbtools configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge python3-pdbtools

Remove python3-pdbtools configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python3-pdbtools

Dependencies

python3-pdbtools have the following dependencies:

References

Summary

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