LinuxQuestions.org
Review your favorite Linux distribution.
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 08-11-2005, 03:14 AM   #1
yourwar
LQ Newbie
 
Registered: Dec 2004
Location: California
Distribution: Debian
Posts: 16

Rep: Reputation: 0
How do I install a .tar.gz file?


I just downloaded gFTP and I was just wondering how I install this .tar.gz file?
 
Old 08-11-2005, 03:18 AM   #2
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 49
Code:
tar xvzf gftp-version-and-stuff.tar.gz
cd gftp-version-and-stuff
Now there is a README in there, read it. By default you can do:
Code:
./configure
make
su
<password>
make install
Although, this may differ between different tarballs.

Last edited by Ephracis; 08-11-2005 at 03:19 AM.
 
Old 08-11-2005, 03:23 AM   #3
Lucas10
Member
 
Registered: Jun 2005
Location: Sainte-Louise, Nouveau-Brunswick, Canada
Distribution: Mandrake 10.1 Official
Posts: 34

Rep: Reputation: 15
Talking

Use a console

cd to your gFTP
type gunzip gFTP
type ls
type tar -xvf "file you have created with gunzip"
type su and enter your password
type ls and read the readme file or something similar with the command more

hope it will help
I'm a newbie too
 
Old 08-11-2005, 03:49 AM   #4
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 49
Just a note: do not get confused because both what I wrote and what Lucas10 wrote.

To clarify for new ones:
You can either do gunzip file.tar.gz and then tar xvf file.tar and it will work. This is what most readmes will tell you to do. But if you add the "z" flag to tar you do not need to gunzip before: tar xvzf file.tar.gz. If you have a tar.bz2 instead of a tar.gz you just change the z flag to a j flag: tar xvjf file.tar.bz2

EDIT:
More clarifications:

I use "tar xvzf" but default is actually "tar -xvzf", it does not matter in this case, but most programs need that extra -

The flags to tar:
x stands for extract
v is verbose
z/j is for gz or bz2
f stands for file (you need this one)

More info about this: man tar

A good practise to keep your structure clean is to make a "source" directory somewhere (in you home maybe?) and then cd into it and do tar /path/to/downloaded/package.tar.gz this will unpack the package in the directory where you are, but use the file from the downloaded directory. Sanitize your structure. ;)

Last edited by Ephracis; 08-11-2005 at 03:53 AM.
 
Old 08-11-2005, 03:52 AM   #5
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 47
It's also recommended to run
#make clean
right after "make install'
 
Old 08-11-2005, 04:38 AM   #6
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
In most cases, it is better to install software using your distribution's repositories and tools (urpmi, yum, apt...). If you still want to install software from source, I wrote a small article on the subject, you might be interested in:
My site > Computing > Linux > Software/installation.

Yves.
 
Old 08-11-2005, 04:49 AM   #7
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 47
Thumbs up

Very comprehensive manual, Yeti!
You could bookmark it here on linuxquestions
 
Old 08-11-2005, 04:55 AM   #8
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
Thank you very much for those kind words
Thing is I want to keep my work all in one place (my site), as I participate in several forums, and help by mail on occasions. I don't want to repeat myself too often, hence those articles I began to write.
LQ rules don't allow for "advertising" so I keep links to a minimum.

Yves.
 
Old 08-11-2005, 05:01 AM   #9
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 47
In recent Radio show jeremy invited people to post their important material in LQ Bookmarks
http://bookmarks.linuxquestions.org/.../tags/tutorial
 
Old 08-11-2005, 08:18 AM   #10
mani_iips
LQ Newbie
 
Registered: Jul 2005
Location: Indore, India
Posts: 20

Rep: Reputation: 0
In source package we get the full source code for the respective application and we have to install it directly from the source code for which we have certain files in the package itself. Installing from source consists of these steps:
a) copy the package in a desired (any) directory, and extract it
Code:
                tar -xvzf  *.tar.gz
               OR
                tar -xjf  *.tar.bz2
b) this will extract the files in a new directory (within the same path), now u need to compile and install these files, u can also read the README or INSTALL file in the extracted directory.
Code:
cd (directory in which extracted)
c)
Code:
rpm -i package-name
this will check if the files necessary for installation are available

d)
Code:
make
this will compile the package

e)
Code:
make install
will install the executable in /usr/local/bin

Now your software is installed and u can run it
Hope ir helped.
cheerio.
 
Old 08-11-2005, 08:50 AM   #11
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 47
#make clean
after "make install" command to save space and remove temp file
 
Old 08-11-2005, 09:02 AM   #12
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
In most cases, it is better to install software using your distribution's repositories and tools (urpmi, yum, apt...).
me too agree with you "the Yin Yeti"
i've apt.....but could not found yum.......and listeining urpmi for the first time.....
could you please suggest some links to get them.

regards
 
Old 08-11-2005, 09:40 AM   #13
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 49
Quote:
Originally posted by mani_iips

c)
Code:
rpm -i package-name
this will check if the files necessary for installation are available
Since he is on a Debian system this will not work.
 
Old 08-11-2005, 10:16 AM   #14
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
"apt" is a tool for Debian, and is a layer above "dpkg".
"urpmi" is for Mandrake and is a layer above "rpm". It was I think the first tool to bring the "rpm-system" up to the ease-of-use level achieved with "apt" for the "dpkg-system".
"yum" is for Fedora/Redhat, and is also a layer above "rpm".

Yves.
 
  


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 can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
tar.gz file did not include install file |Spec-ops Linux - Newbie 12 11-17-2005 08:25 AM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 03:15 AM
How to install a .tar file OldSarge Linux - Software 5 04-29-2004 06:21 PM
Install a tar file thesoccerking Linux - Newbie 1 05-20-2002 06:03 AM


All times are GMT -5. The time now is 01:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration