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 03-17-2004, 10:18 PM   #1
Whatshisface
Member
 
Registered: Aug 2003
Location: Chesapeake Beach, MD
Distribution: Mandrake 9.2
Posts: 58

Rep: Reputation: 15
How do I download and unzip compressed files?


Hi. I have been wondering when I'd need to do this and the time has come to download some files and unzip them. I'm looking to install an Openoffice GUI to hook up to my MySQL databases. The instructions I've found are:
1. copy the unixODBC*.tar.gz file somewhere you can create files and directories
2. gunzip unixODBC*.tar.gz
3. tar xvf unixODBC*.tar
Doing so will create a unixODBC directory with all source files inside.

I am not familiar with any of these commands. When I clicked on the download button on the site, it seemed to unzip the files into my /tmp directory automatically. Anyway, what is the standard procedure for downloading .tar files and unzipping them? I'm on Mandrake 9.2.
 
Old 03-17-2004, 10:29 PM   #2
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 46
u download them like any other file , i use a program called "downloader for x" its like getright , i just copy the link then past it in the program .
for unzipping .tar and .tar.gz u could use a program called ark its just like winzip , or u could use the commands that u said.

the thing is .tar archives many files into just one and .gz compresses this .tar file so thats why the file is unixODBC*.tar.gz
 
Old 03-17-2004, 10:37 PM   #3
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
well to compress "your" step 2 and 3 into one step, just type :
tar -zxvf filename.tar.gz
to uncompress the tarball ... it will uncompress the contents to a folder
in the same directory ..
and the best way to go after extracting, is to go into the newly
uncompressed folder and read either (or both) the README
and/or INSTALL file ...
 
Old 03-17-2004, 11:19 PM   #4
Axo
Member
 
Registered: May 2003
Distribution: Debian
Posts: 142

Rep: Reputation: 16
tar.gz
Code:
tar -zxvf filename.tar.gz
cd to the new dir
./configure
make
make install  ( as root )
.........................................................


tar.bz2
Code:
bunzip2 filename.tar.bz2
tar -xf filename.tar
cd to the new dir
./configure
make 
make install ( as root )
As DrOzz mentioned read the "README" and/or the "INSTALL" file.

and take a look here.
http://www.linuxquestions.org/questi...ryid=35&long=1

Last edited by Axo; 03-17-2004 at 11:21 PM.
 
Old 03-21-2004, 02:33 PM   #5
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
Quote:
tar.bz2

code:--------------------------------------------------------------------------------
bunzip2 filename.tar.bz2
tar -xf filename.tar
cd to the new dir
./configure
make
make install ( as root )
--------------------------------------------------------------------------------
not a big issue, but i thought it would be worth mentioning that the first two steps can be compressed into one, but just typing :
tar -jxvf filename.tar.bz2
 
  


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 on Earth to create compressed files in Linux? raid517 Linux - Software 4 06-03-2009 04:07 PM
how do I unzip .gz files? triumdh Linux - Newbie 2 07-31-2005 06:26 PM
how to unzip files of this type andrewnow Linux - Software 4 03-14-2005 11:28 AM
*.ace compressed files - how to open/extract? zivs Linux - Newbie 3 02-14-2005 05:29 PM
gzip compressed files jamaso Linux - Newbie 4 01-13-2002 05:59 PM


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