LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-07-2003, 03:22 PM   #1
bruce64
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Rep: Reputation: 0
unzipping files using bz2


Good afternoon,
I am trying to unzip and install java onto my system. I am unfamiliar with how to properly unzip bz2 files. Any help would be appreciated!

Bruce
 
Old 07-07-2003, 03:27 PM   #2
darin3200
LQ Guru
 
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Rep: Reputation: 45
To unzip a file that is only compressed with bz2 use
bunzip2 filename.bz2
to unzip things thar are compressed with .tar.bz2 use
tar -xvjpf filename.tar.bz2
 
Old 07-07-2003, 03:42 PM   #3
bruce64
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Original Poster
Rep: Reputation: 0
It worked!

Hey Darin,
Thanks a lot, this did the trick!

bp
 
Old 07-16-2003, 01:10 PM   #4
jdtiede
Member
 
Registered: Apr 2003
Location: Baton Rouge, LA
Distribution: Kubuntu 12.04, 12.10, 13.04a
Posts: 244

Rep: Reputation: 30
I have a file docs.tar.gz2. When I try bunzip2 docs.tar.gz2 or tar -xvjpf docs.tar.gz2, I am informed that the file isn't a bz2 file and that child status is (2). I don't remember the command I was told to use to compress the file in the first place (a couple of months ago). What else can I try?
 
Old 07-16-2003, 01:42 PM   #5
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
I don't know if this happened to you, but a certain browser will do you the favor of unzipping a file during a download without renaming it. Try using the file command to check the file type.
 
Old 07-17-2003, 01:10 PM   #6
bruce64
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Original Poster
Rep: Reputation: 0
wrong unzip

Good afternoon JD,
You should use gunzip not bunzip. Notice your file name - docs.tar.gz2 because the file ends with gz2, this should tip you off to use gunzip. if it were bz2, then bunzip. I hope this clears things up for you. Good luck!

B64
 
Old 07-17-2003, 02:51 PM   #7
jdtiede
Member
 
Registered: Apr 2003
Location: Baton Rouge, LA
Distribution: Kubuntu 12.04, 12.10, 13.04a
Posts: 244

Rep: Reputation: 30
The gz2 was a mistake in transcribing (it actually was bz2), but I'll make a note of that for future reference. Stickman's suggestion that Mozilla would probably unzip it worked. Thanks, Bruce.
 
  


Reply



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
Problems unzipping tar.bz2 fictos Linux - Newbie 2 08-21-2005 01:10 PM
unzipping files??? linuxnoob1 Linux - Newbie 11 05-24-2005 01:30 AM
Unzipping all .gz files in all subdirectories darin3200 Linux - General 10 04-24-2004 09:58 PM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 01:04 PM
unzipping .zip files...how?? Robert0380 Linux - General 2 04-11-2002 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:58 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
Open Source Consulting | Domain Registration