LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 01-21-2008, 09:12 AM   #1
VINSTAR
Member
 
Registered: Jan 2008
Location: kerala[INDIA]
Distribution: not yet confirmed
Posts: 38

Rep: Reputation: 15
help:how to install .tar


i am newbie to linux
i dont know how to install packages
with extension .tar
Anybody pls explain me the step by step instruction for installing
 
Old 01-21-2008, 09:17 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
If the archive has a .tar extension, it's an uncompressed archive. You don't really install from the archive, per se; you would untar it and run the configure script within it, then "make" the source code:
Code:
#USING "foo-0.1" AS AN EXAMPLE
#IF .tar IS THE EXTENSION:

$ tar -xf foo-0.1.tar

#IF .tar.gz IS THE EXTENSION:

$ tar -zxf foo-0.1.tar.gz

#IF .tar.bz2 IS THE EXTENSION:

$ tar -jxf foo-0.1.tar.bz2

#ONCE THE ARCHIVE IS UNPACKED:

$ cd foo-0.1
$ ./configure
$ make
$ su -c 'make install'
Password: [type in root password here]
Note, when you are prompted for the root password, no characters will be echoed (printed) to the screen.

A nice tool you can use for installing stuff from packages (although the command line is still the preferred way) is Pacman

Last edited by indienick; 01-21-2008 at 09:19 AM.
 
Old 01-21-2008, 09:22 AM   #3
VINSTAR
Member
 
Registered: Jan 2008
Location: kerala[INDIA]
Distribution: not yet confirmed
Posts: 38

Original Poster
Rep: Reputation: 15
does this works for any packages in any distro
 
Old 01-21-2008, 10:52 AM   #4
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,525

Rep: Reputation: 94
Quote:
Originally Posted by VINSTAR View Post
does this works for any packages in any distro
Absolutely no, although it will work in many cases. After untarring the source look at the README or INSTALL files that come with it (may have other names) or on the homepage of that app.

Apps that are written in python for example require usually other steps, but once again: First take a look at the source you downloaded, if there is some documentation.

Further more, sometimes "./configure" is not enough if you want to enable/disable special options of the software. "./configure --help" or the documentation usually give you info about that.

P.S.: Usually it's a good idea to use your distro's package manager to install packages. Most often there will be a precompiled package available (at least for Ubuntu, Suse, Debian ...) - compiling and installing from source is more a last way here, because your package management system usually doesn't know what you installed by hand and can do no dependency tracking this way.

Last edited by titopoquito; 01-21-2008 at 10:54 AM.
 
Old 01-22-2008, 02:07 AM   #5
VINSTAR
Member
 
Registered: Jan 2008
Location: kerala[INDIA]
Distribution: not yet confirmed
Posts: 38

Original Poster
Rep: Reputation: 15
what is this python
 
Old 01-22-2008, 02:19 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Python is a programming language.
 
Old 01-22-2008, 08:24 AM   #7
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
The configure-make-install method works if when you unpackage the tar archive, and there is a "configure" script within it.

Just note, just because a program may "configure" without any problem, doesn't mean that "make" will necessarily work. This is where you may just want to resort to sticking to your distribution's package manager.

When titopoquito brought up the point about Python programs, he meant that not all programs kept within "tarchives" may not necessarily be written in a compiled language (ie. C, C++), but may be written in an interpreted language (ie. Python, Lisp) which would not allow for any compiling.

Last edited by indienick; 01-22-2008 at 08:26 AM.
 
Old 01-23-2008, 01:03 AM   #8
kingzog
LQ Newbie
 
Registered: Jun 2006
Distribution: Gentoo
Posts: 20

Rep: Reputation: 0
Quote:
Originally Posted by VINSTAR View Post
does this works for any packages in any distro
Works for most Tar files like others have said. Best practice would be to always run "tar xf" in a seperate directory for each tar file, and if you see a README file in the resulting set of files, read it before assuming other things.

Also keep an eye on the terminal while configure and make are running to make sure your program compiles without a hitch. Every now and again you'll probably need to get something else your program needs to run properly.
 
Old 01-27-2008, 01:31 PM   #9
VINSTAR
Member
 
Registered: Jan 2008
Location: kerala[INDIA]
Distribution: not yet confirmed
Posts: 38

Original Poster
Rep: Reputation: 15
Got this page by searching

http://www.linuxquestions.org/questi...ograms.-45094/

Last edited by VINSTAR; 01-27-2008 at 01:33 PM. Reason: nothing
 
Old 01-27-2008, 03:23 PM   #10
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 37
There are several places you can find info on command line usage (the black box with words no graphical display).
I usually try to find the answer myself before posting a question.
In command line (Konsole) you can type man <command>. There is usually a great amount of details there and many times examples at the end of the instructions.
A list of commands can be found here http://www.ss64.com/bash/
There is also google and lq search.

Also as others have said, read the "less README" and/or "less INSTALL" very closely. The program could depend on other programs to run. If the author has focused on detail, there should be a list of dependencies in the README/INSTALL. Those programs will need to be installed first before installing the actual program you want. This can be quite a bit of trouble. Some dependencies rely on yet other dependencies.

And... as others have said. If you have such distros as ubuntu, debian, etc... It is much easier to use the package manager. You can install prepackaged programs. The package manager will take care of the dependencies for you.
okos

Last edited by okos; 01-27-2008 at 03:38 PM.
 
Old 08-06-2010, 05:52 PM   #11
wookiesteve
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
The way I do it is in this link its a very good tutorial
 
Old 08-06-2010, 05:52 PM   #12
wookiesteve
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
sorry left out link link to private forum removed

Last edited by Matir; 08-10-2010 at 04:32 PM. Reason: private link
 
  


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 to install .tar.gz and .tar.bz and .src.rpms gadekishore Linux - Software 3 08-06-2010 06:02 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 03:53 AM
How to INSTALL softwares with *.tar.gz or *.tar.tgz extension On SLACKWARE 10.2 DdOs Linux - Software 4 03-20-2006 02:54 AM
how to install .tar.bz and src.rpms and tar.gz files gadekishore Linux - Software 1 10-12-2005 09:09 PM


All times are GMT -5. The time now is 03:58 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration