LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-12-2009, 09:25 AM   #1
Nottawa
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
how do I install .tar.gz files?


How do I install a program that comes as a .tar.gz file? I am running Ubuntu 9.04 on a Thinkpad T400. I know I should use the repositories, but they don't have the software I want. Thanks for your help.
 
Old 12-12-2009, 09:27 AM   #2
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 78
tar -xzf filename.tar.gz
./configure
make
make install

*most of the time
 
Old 12-12-2009, 09:29 AM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello and Welcome to LinuxQuestions,

A 'tar.gz' file is just a 'collection' of files packed together (tar) in a compressed (gz) file. To extract the contents use:
Code:
tar xzvf filename
Then you should have a directory (if it's a file containing sources to compile a program) with the same name as the filename. CD into that directory and see if you have a configure or make file.

Kind regards,

Eric
 
Old 12-12-2009, 09:34 AM   #4
beetleman64
LQ Newbie
 
Registered: Dec 2009
Location: Glasgow, Scotland
Distribution: Ubuntu 11.04
Posts: 25
Blog Entries: 11

Rep: Reputation: 0
That depends. First of all, extract the files using the archive manager to a directory of your choice. Once you have done that you should poke around the folder for a file called either "SETUP" of "INSTALL". If you are asked, open these files in the terminal and follow the instructions.

If you can't find a setup file, there is usually a command line way, but I'm not the one to ask about that!

Are you sure there isn't a .deb file to download? Most major vendors offer a tar.gz file, a .rpm and a .deb file.

Out of interest, which software is it? It may be that someone has installed the same software and may be able to offer more assistance.
 
Old 12-12-2009, 10:18 AM   #5
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,614

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Nottawa,

After the important things were said above, let me review them to you:

1. Extract the files --tar.gz is like .zip or .rar files in windows: they are archives. EricTRA's instruction above is a simple untarring code.
2. If your archive contained source --you will cd into the directory and compile it, follow the sequence given by bret381 above.
3. If your archive contained a package --you will install it according to normal procedure in Ubuntu: sudo apt-get install /dir/*.deb (if I have remembered it still).
4. If your archive contained a script --say SETUP or INSTALL script you will only need to run it: sudo ./SETUP or ./INSTALL.
5. If your archive contained another script --you will still need to run it the same way in #4 but if "permission" complains you will set first an "executable" permission in the script: doing this: sudo chmod 775 ./scriptname.sh, then you may proceed to run it.
There are growing numbers of installation script types, forms and names today; you should be quick to identify them within the extracted directory. Python uses "setup.py", nvidia or ati uses "*.run" (am not sure if it still does today), etc.

It is best if you will post here what your archive contained for the package. In that way there are many people here to give you accurate instructions.

Hope it helps.
 
Old 12-12-2009, 06:15 PM   #6
Nottawa
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your help. I got the tar unpackaged and found a readme which took me through the the rest of the install. Unfortunately it turned out to not be what I needed, once again. One day I'll find what I am looking for....
 
Old 12-13-2009, 02:48 AM   #7
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

What are you looking for then? With a community this big as LinuxQuestions changes are that someone has already found that what you seek and will be able to point you in the right direction.

Kind regards,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you install tar. bz files? UncleMonty Linux - Newbie 3 06-17-2008 06:20 PM
how to install .tar.bz and src.rpms and tar.gz files gadekishore Linux - Software 1 10-12-2005 09:09 PM
How do I install from .TAR files? CyberLord_7 Linux - Newbie 8 03-17-2005 08:42 PM
How do you install tar/gz files, and rpm files? Fear58 Linux - Software 6 02-14-2004 05:35 PM
cant install .bin files, tar.gz files or anyother format!!! madskillz Linux - Newbie 4 10-05-2003 11:28 AM


All times are GMT -5. The time now is 10:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration