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 |
Code:
tar -xvzf gftp-2.0.18.tar.gz |
Welcome to the 5 step dance
Code:
tar -xvzf <package>.tar.gz One useful guide is http://www.tuxfiles.org/linuxhelp/softinstall.html and you can also use the man pages. Good luck with it |
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). |
Well first off you should run the following command
Code:
man tar |
Quote:
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. |
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 |
what distro are you using?
|
Quote:
In any event, congrats YankeeFan on solving the problem and thanks for posting back with the followup. |
Quote:
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. |
All times are GMT -5. The time now is 12:16 PM. |