Quite often, on the Internetfind ready-to-install deb packages, and may not have the correct version of the program in the standard repositories of Linux distributions. Therefore, you yourself have to resort to building the application from the source code. Distributed the latter in special archives of the format tar.gz or tar.bz2.

Go to the folder containing the required archive

Similar installation tar.gz passes using the "checkinstall" command. First, you need to build the deb package from the code. So, if the main command is not installed, you need to write in the terminal: "sudo apt-get install checkinstall". After that, you need to go to the folder where the desired archive is located, using the command "cd directory_unique_program_code".

installing tar gz
In this case, the installation is from tar.gz, so you need to unzip it with the command "tar -zxf program name.tar.gz" or "tar -jxf program name.bz2", respectively.

To achieve the desired result, you can alsoextract files by the archive manager. It's worth noting that for a more convenient work on the command line, a wonderful TAB button was invented, which automatically adds complex names to folders, files or archives. To do this, just enter the first letter of the name.

Configuring the source code of the program for its distribution

In simple terms, installing tar.gz necessarily assumes a configuration that means configuring files with the right text for a specific operating system. After this action, a file is created that describes the configuration of the system. For such purposes, the command "./configure" was invented. The OS itself after this does not change, so the team is completely safe and will not damage the stability of the system.

Installation from tar gz
Also, the author of the application may wish tocomplete the installation keys, so to view the required instructions from the creator, you can type "./configure -help" or open the readme or install file, installing tar.gz archives, all this includes. This stage is the most difficult, because you need to install all additional dependent packages to complete the process correctly. Therefore, if the configuration installation has stopped at the middle of the process, then you need to add the necessary packages to the system. In this case, the terminal lists all the names of the required libraries and packages. So, having understood well, you can easily navigate in such settings.

Build deb packages

The previously agreed program "checkinstall" astime is designed to create and install the necessary packages for various distributions, for example, deb packages that are widely used in an OS such as ubuntu.

Ubuntu installation tar gz
Install tar.gz is ultimately reduced to this. To specify the exact assembly type, the "-D" key is added. That is, the entire command looks like this: "sudo checkinstall -D". All further operations for the installation and location of the program will occur in the same folder. To remove the program, you can use standard tools, such as Aptitude remove, Aptitude purge, Synaptic. The described installation of tar.gz is not the only way, but it can be the most preferred for many users. Nevertheless, one must be very careful and attentive, because everywhere there are pitfalls.