In the event that you are using the Linux operating system for the first time or relatively recently, surely you should find several files that have extensions that you have never seen before which can cause you confusion, more if you are used to files in Linux than they are .de or .rpm. But there are many others files that are already compressed such as tar.gz, so that you have more idea about this I will tell you what it is about.
Well, to begin with, tar.gz is the suffix of equivalent files, being long is tar.gz but if the file format is .tar. Not only is it a file type but it also refers to a standard file manipulation program but does not include what compression would be. This format was designed to store files on magnetic tapes, precisely for that reason it has the name tar which stands for “Tape Archiver”.
The good of this format is that it is already prepared to be processed linearly therefore it will not be necessary to have it extracted and to find it go through the entire file. Tar files contain streams that are not compressed from the files they contain, in order to achieve compression, different programs are used. The file to be modified will be named tar adding a suffix to it, in case you use the gzip program, the file will have the name tar. gz.
How to unzip and install tar gz
It is going to be a long but simple procedure to install tar gz just follow all the steps that you will find ahead.
To compress
The first thing you have to do is access the folder where the file is located using the command: cd folder where the file is, you will only use this command if the folder has a single word but if it has several you will have to use the command: cd “folder where the file is”.
Then you will unzip the required file, to be able to do it you have to place the following command: tar –zxvf filename.tar.gz.
The next thing you have to do is configure it using the command: ./configure
Then you will have to compile it by typing the command make and finally you are going to write the command make install.
It may be that in some of the cases it will not be necessary for you to make the configuration, therefore you will only have to write the name of the program in the terminal.
For installation
This method is much simpler, the only problem is that It will only be available on newer versions of Linux. It consists of unzipping the file and then reading the Install file, this is inside it.
Many packages that you do not know are usually pre-installed in the operating system, but you do not have to be scared when you see an extension that is unknown to you, it is always important to inform yourself correctly.