How To Install cain on Debian 9
Introduction
In this tutorial we learn how to install cain on Debian 9.
What is cain
cain is:
Cain performs stochastic and deterministic simulations of chemical reactions. It can spawn multiple simulation processes to utilize multi-core computers. It stores models, methods, and simulation output (populations and reaction counts) in an XML format. In addition, SBML models can be imported and exported. The models and methods can be read from input files or edited within the program.
The GUI (Graphical User Interface) is written in Python and uses the wxPython toolkit. Most of the solvers are implemented as command line executables, written in C++, which are driven by Cain. This makes it easy to launch batch jobs. It also simplifies the process of adding new solvers. Cain offers a variety of solvers:
- Gillespie’s direct method.
- Gillespie’s first reaction method.
- Gibson and Bruck’s next reaction method.
- Tau-leaping.
- Hybrid direct/tau-leaping.
- ODE integration.
This package provides the architecture independent files for cain
There are three methods to install cain 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 cain Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install cain using apt-get by running the following command:
sudo apt-get -y install cain
Install cain Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install cain using apt by running the following command:
sudo apt -y install cain
Install cain 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 cain using aptitude by running the following command:
sudo aptitude -y install cain
How To Uninstall cain on Debian 9
To uninstall only the cain package we can use the following command:
sudo apt-get remove cain
Uninstall cain And Its Dependencies
To uninstall cain and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove cain
Remove cain Configurations and Data
To remove cain configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge cain
Remove cain configuration, data, and all of its dependencies
We can use the following command to remove cain configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge cain
Dependencies
cain have the following dependencies:
References
Summary
In this tutorial we learn how to install cain package on Debian 9 using different package management tools: apt, apt-get and aptitude.