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 08-20-2006, 11:46 AM   #1
YankeeFan
LQ Newbie
 
Registered: Jun 2006
Posts: 21

Rep: Reputation: 15
How do I unzip and run a .tar.gz


Gentle folk--
I am a newbie to linux. I would like to download and run gFTP. I have never dealt with a file.tar.gz before and I can't seem to find any "Simple English" tutorials on what to do.

If anyone can point me to a tutorial for compressing and uncompressing, and running zip files, please do.

I have downloaded a zip file: gftp-2.0.18.tar.gz in my mydownloads folder.

I do not know how to unzip it.
I do not know where to unzip it to. Is there a place in linux file system that this gftp file should be placed?

Once I unzip it, how do I install it and run it? Comming from Windows, I'm used to running exe's and having them do most of the work as far as where to install files and such.s this fairly the same in Linux?

Thanks for any help.
JohnC
 
Old 08-20-2006, 11:55 AM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Code:
tar -xvzf gftp-2.0.18.tar.gz
 
Old 08-20-2006, 11:55 AM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 84
Welcome to the 5 step dance
Code:
tar -xvzf <package>.tar.gz 
cd <directory>
./configure
make
make install
Substitute the package name for "<package">. The "tar" command will unzip the package and create a subdirectory. Use "cd" to go to that subdirectory (which will be named the same as the package) then run ./config, make, and make install.

One useful guide is http://www.tuxfiles.org/linuxhelp/softinstall.html and you can also use the man pages. Good luck with it
 
Old 08-20-2006, 11:57 AM   #4
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Rep: Reputation: 30
Well first off you should run the following command
Code:
man tar
This should give you the instructions on how to unzip the tar.gz file and how to place it in a certain directory. It is a very worthwhile man page to read. Secondly about the install process there should either be a README in the files that you unzipped or install instructions on the site of the program that you downloaded. Typically you don't have to place the files in the correct location right when you unzip it. The install process usually takes care of that. I would just hunt around for installation instructions on your program and you should be all set. Hope this helps.
 
Old 08-20-2006, 11:57 AM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,716
Blog Entries: 14

Rep: Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039
Any file with a .gz extension should be a gzip compressed file. To uncompress (unzip) such a file just type "gunzip <file>". This will put the file with the same name less the .gz extension in the same location. It doesn't unbundle the tar. You need to make sure you have plenty of room in the directory to be sure it will fit after it is expanded. Once you've expanded there will no longer be a .gz file.

To extract (unbundle) files with a .tar extension the command is:
tar xvf <file>. Prior to doing that though you should run tar tvf <file>. The x does the extract. The t just shows you the table of contents so you'll know what it would extract.

The site for where you got the app should tell you where it needs to be. This may just contains some rpm files that need to be installed. It depends a lot on what it has.

You didn't list your distro so there may be a better way to get gftp depending on what it is (yum, yast, up2date, apt-get).
 
Old 08-20-2006, 12:40 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by J.W.
Welcome to the 5 step dance
Code:
tar -xvzf <package>.tar.gz 
cd <directory>
./configure
make
make install
Substitute the package name for "<package">. The "tar" command will unzip the package and create a subdirectory. Use "cd" to go to that subdirectory (which will be named the same as the package) then run ./config, make, and make install.

One useful guide is http://www.tuxfiles.org/linuxhelp/softinstall.html and you can also use the man pages. Good luck with it
XXX.tar.gz does not always lead to configure_make_makeinstall. Sometimes it leads to an install script, or simply "rpm -i xxx.rpm"

tar, gz, bz2, tgz etc are all file extensions that tell you how a package is compressed and archived. Once the files are extracted, there are any number of things that you might have to do next.
 
Old 08-20-2006, 01:04 PM   #7
YankeeFan
LQ Newbie
 
Registered: Jun 2006
Posts: 21

Original Poster
Rep: Reputation: 15
unzipping and running .tar.gz

Thanks to all. I got it now. I figured it would be easy, but I just couldn't find how to do it.

I now have to install a GTK+ 2.0. I did a find -name GTK and nothing came up.

Thanks again, I'm on my way...

YankeeFan
 
Old 08-20-2006, 01:23 PM   #8
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
what distro are you using?
 
Old 08-20-2006, 06:41 PM   #9
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 84
Quote:
Originally Posted by pixellany
XXX.tar.gz does not always lead to configure_make_makeinstall. Sometimes it leads to an install script, or simply "rpm -i xxx.rpm"

tar, gz, bz2, tgz etc are all file extensions that tell you how a package is compressed and archived. Once the files are extracted, there are any number of things that you might have to do next.
You are correct, but my post was more intended to be a generic reponse to the question asked in the thread title than as a sure-fire solution to one specific scenario. Granted, the typical 5 step routine may not be a universal, 100% guaranteed solution to installing a .tar.gz package, but IMHO I'd say it's definitely the expected solution.

In any event, congrats YankeeFan on solving the problem and thanks for posting back with the followup.
 
Old 08-21-2006, 02:39 PM   #10
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,716
Blog Entries: 14

Rep: Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039
Quote:
Originally Posted by YankeeFan
Thanks to all. I got it now. I figured it would be easy, but I just couldn't find how to do it.

I now have to install a GTK+ 2.0. I did a find -name GTK and nothing came up.

Thanks again, I'm on my way...

YankeeFan
You really need to tell us what distro you're running. While the find command has a lot of uses it won't "find" things by package name unless the package name happens to be in the file or directory name.

For distro like RedHat/Fedora you'd be much better off doing:

rpm -qa |grep -i gtk

The rpm -qa shows all packages installed and the grep -i gtk says to look for gtk case insensitive (gtk, GTK, gTK ec...). Remember in Linux/UNIX everything is case sensitive. If you had a billion files with "gtk" as opposed to "GTK" in their names find would locate them without the -icase (ingore case) flag.
 
  


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 list contents of a .tar.gz without unzip? leontini Linux - General 14 04-21-2010 02:07 AM
D/l a .tgz.tar file..how to unzip Navop Linux - Newbie 1 03-13-2005 07:56 AM
How to unzip a tar.gz?? abort...retry Linux - Newbie 3 01-02-2005 08:08 AM
Why can't I unzip a .tar.gz file Dewar Linux - Software 8 09-18-2003 04:07 PM
unzip a tar.gz file klfreese Linux - Newbie 1 07-22-2003 11:35 PM


All times are GMT -5. The time now is 12:59 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