Install tar gz via terminal command
How to install a .tar.gz (or .tar.bz2) file?
tar -xzf archive.tar.gz
Or you can just double-click on the archive from Nautilus (the file manager) to see what’s inside. No need for command line until now.
If this archive contains something to install in the system, then sudo would be useful at one point or another. Very often, such an archive contains software that must be compiled and then installed. Typically, what you then do is as follows:
tar -xzf archive-name.tar.gz cd archive-name ./configure make sudo make install
As you see, only the step actually installing the program requires superuser rights; everything else happens just in your home directory, which you own. This isn’t really a windows thing usually; So, READ instructions above; first, read any documents called “README” or “INSTALLATION” that you will find in the archive.
And there is this version of commands how to install tar.gz via terminal:
- Open a console, and go to the directory where the file is
tar -zxvf file.tar.gz
- Read the file INSTALL and/or README to know if you need some dependencies.
Most of the times you only need to:
sudo make install