How To Install src2tex on Kali Linux

In this tutorial we learn how to install src2tex on Kali Linux. src2tex is converter from source program files to TeX format files

Introduction

In this tutorial we learn how to install src2tex on Kali Linux.

What is src2tex

src2tex is:

src2tex [resp. src2latex] is a sort of text converter from BASIC, C, C++, OBJECTIVE-C, COBOL, FORTRAN, HTML, JAVA, LISP, MAKE, PASCAL, PERL, SCHEME, SHELL, TCL/TK and ASIR, MACSYMA, MAPLE, MATHEMATICA, MATLAB, MAXIMA, MuPAD, OCTAVE, REDUCE to TeX [resp. LaTeX]. However, it is not a simple pretty-printer; actually, it is designed to fulfill the following desires:

(1) We want to write mathematical formulae in comment area of source program. (2) We would like to patch PS or EPS figures upon source program. (3) We need a simple and easy-to-use tool which enables to combine documentation and manual with source program. (4) We often have to translate our program from text format to TeX format when we want to quote our own program in research report, lecture note, etc. That is quite time consuming, so it should be automated.

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

Install src2tex Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install src2tex

Install src2tex Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install src2tex

Install src2tex Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install src2tex

How To Uninstall src2tex on Kali Linux

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

sudo apt-get remove src2tex

Uninstall src2tex And Its Dependencies

To uninstall src2tex and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove src2tex

Remove src2tex Configurations and Data

To remove src2tex configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge src2tex

Remove src2tex configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge src2tex

Dependencies

src2tex have the following dependencies:

References

Summary

In this tutorial we learn how to install src2tex package on Kali Linux using different package management tools: apt, apt-get and aptitude.