View Light

Those pesky tar/gz files!

Parent Message
One thing that has thrown me for a loop getting into Linux is how the heck to install these compressed archived (Think ZIPped files in NT)???!!

Even worse, some of them are GZ'd (GNU-Zipped) and then contain nothing but a TAR file. I am still so new to this, that it seems kinda stupid. Why TAR and GZ all together?? Oh well, I know how to work with them if I don't understand why...

Imagine you have one of these files. Pretend that it is called WeirdThing004.gz

To extract it, type the following:

gunzip WeirdThing004.gz; tar -xvf WeirdThing004

This will unZip the GZ and then unTar the extracted contents. (This is one of the real nice things Linux has on NT - you can have multiple commands on one line - just separate them with a semicolon!!)

Typically you will have a RunME or Setup file inside the newly extracted contents. Run that to install it. (It's up to you to figure out what to actually do with the mess of files you just extracted, it doesn't seem to be de facto standardized like NT is with setup.exe to install things) Also not that Linux is kind weird about running program: even if you are in the proper directory (folder) that the executable file is located in, you still have to put "./" in front of the file to get it to run. Once again, I have no idea why, yet another stupid-seeming tweak of Linux.

For example, if you are in the directory with a program called CoolGame, you need to type the following to get it to run:

./CoolGame

I have no idea WTF is with that, but it'll sure save you some headscratching if you know that ahead of time! :)
Rating: (You must be logged in to vote)
Reply
Replies:
Comfortably Anonymous
11/30/1999 5:10:05 PM
0 Dislikes: 0
Comfortably Anonymous
11/30/1999 5:12:21 PM
0 Dislikes: 0
Comfortably Anonymous
2/11/2000 5:27:38 PM
0 Dislikes: 0
- I posted this???!!! :) [Read 1329]
Comfortably Anonymous
5/28/2003 3:59:33 PM
0 Dislikes: 0
Comfortably Anonymous
2/18/2004 5:04:39 PM
0 Dislikes: 0
This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available in our efforts to advance understanding of environmental, political, human rights, economic, democracy, scientific, and social justice issues, etc. We believe this constitutes a 'fair use' of any such copyrighted material as provided for in section 107 of the US Copyright Law. In accordance with Title 17 U.S.C. Section 107, the material on this site is distributed without profit to those who have expressed a prior interest in receiving the included information for research and educational purposes. For more information go to: http://www.law.cornell.edu/uscode/17/107.shtml . If you wish to use copyrighted material from this site for purposes of your own that go beyond 'fair use', you must obtain permission from the copyright owner.