How to install a tar.gz file in Ubuntu. How to install downloaded tar.gz in Ubuntu. Command to install tar.gz file in linux – how to extract and install tar.gz files in Ubuntu.
Linux systems use a variety of file formats, and each format can be faced with a variety of issues. Tar.gz files are among the most troublesome file formats and often create installation issues for users. If you are currently struggling to get tar.gz files onto your system, here are a few techniques and commands that can help you through the installation process.
Installing Tar.gz Files on Ubuntu
The first method we recommend is to install the file through your user directory. To do this, open your directory, and go to your file. Use $tar -zxvf program.tar.gz to extract .tar.gz files, or $tar -zjvf program.tar.bz2 to extract .tarbz2s.
Next, change the directory to the unzipped folder, andthen type sudo su to get into the root. Enter your password, followed by make install.Do not forget to also download dependencies.
Download the desired .tar.gz or (.tar.bz2) file
Extract the .tar.gz or (.tar.bz2) file with the following commands
tar xvzf program.tar.gz
tar xvjf program.tar.bz2
Navigate to the extracted folder using cd command
Now run the following command to install the tarball
sudo make install
Use sudo to Install Tar.gz File
Alternatively, you can choose to use a sudo command to unzip and install your file. To do this, launch your terminal and enter tar -xzf archive.tar.gz, or double-click the archive file and view its contents.
If the archive contains some sort of installation software, you will need to execute a sudo command. Be sure to follow the instructions listed in the archive to ensure that the software is properly installed.
Use a Sudo CommExample
$ sudo apt-get update
$ wget https://dl.winehq.org/wine/source/1.9/wine-1.9.19.tar.bz2
$ sudo tar xzvf wine-1.9.19.tar.bz2
$ cd wine-1.9.19
$ sudo make install
$ sudo reboot