xxxxxxxxxx
tar -xzf /path/to/file.tar.gz -C /path/to/destination
xxxxxxxxxx
Download the desired .tar.gz or (.tar.bz2) file
Open Terminal
Extract the .tar.gz or (.tar.bz2) file with the following commands
tar xvzf PACKAGENAME.tar.gz
tar xvjf PACKAGENAME.tar.bz2
Navigate to the extracted folder using cd command
cd PACKAGENAME
Now run the following command to install the tarball
./configure
make
sudo make install
xxxxxxxxxx
tar -xzf archive-name.tar.gz
cd archive-name
./configure
make
sudo make install
xxxxxxxxxx
cd ~/Downloads/archive.tar.gz #first navigate to file location
tar -xzvf archive.tar.gz -C /path/to/new/directory/
#-C flag will change the extraction to a new directory.
#remove -C if you want to extract it to current location.
xxxxxxxxxx
Install .tar.gz or (.tar.bz2) File
Installing a .tar.gz or (.tar.bz2) file is very easy. Ubuntu users can extract the .tar.gz file and compile a program from its source. Follow the steps given below to extract and install tar.gz files in Ubuntu.
It is wise to navigate to the downloaded .tar.bz folder and open and read the README file. It normally has the installation instructions. If not, you can install .tar.gz or (.tar.bz2) file via Terminal.
Download the desired .tar.gz or (.tar.bz2) file
Open Terminal
Extract the .tar.gz or (.tar.bz2) file with the following commands
tar xvzf PACKAGENAME.tar.gz
tar xvjf PACKAGENAME.tar.bz2
Navigate to the extracted folder using cd command
cd PACKAGENAME
Now run the following command to install the tarball
./configure
make
sudo make install
xxxxxxxxxx
# 1. Extract the contents of the .tar.gz file
tar -xzf <filename>.tar.gz
# 2. Navigate into the extracted directory
cd <extracted_directory>
# 3. Read any documentation or instructions provided within the extracted files, if available
# 4. Install any required dependencies (if mentioned in documentation)
# 5. Build and install the software using the provided installation instructions
./configure
make
sudo make install
xxxxxxxxxx
1. Extract it all
2. Come to the folder in which you extracted it
3. ./(filename)
4. make
5. sudo make install