LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-28-2003, 07:15 AM   #1
Agileuk
LQ Newbie
 
Registered: Sep 2003
Distribution: Red Hat 9, KDE
Posts: 24

Rep: Reputation: 15
.tar.bz2 files


I was wondering how I install/open these files?

I have tried sh {filename} but this just reports that it cannot execute the binary file?

What command do I need, and also is a .tar (tarball) similar in respects to a compressed archive, or is it more like an installer, ie. .rpm file?

I was also wondering how i could open .rar files, as I have quite a few things compressed in .rar files in my windows directory, but whilst linux can see them, it is unable to open them.

Thanks

Agile
 
Old 09-28-2003, 07:38 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
% bzip2 -cd somefiles.tar.bz2 | tar xvf -

will unpack the compressed (bzipped) archived (tar'ed) files. This is just a way to bundle together a bunch of files and compress to save storage or bandwidth. Similar thing with gzip instead of bzip2 is also common, but bzip2 usually compresses better. Check man pages for bzip2, tar and gzip for full gory details.

Not sure what to do with .rar
 
Old 09-28-2003, 07:47 AM   #3
lynch
Member
 
Registered: Nov 2000
Location: A Mid-Atlantic state
Distribution: SuSE 8.1,Knoppix 3.2,Mandrake 9.1
Posts: 388

Rep: Reputation: 30
try:
tar -xjvf filename.tar.bz2
the -j option is used to unzip bz2
HTH
lynch
 
Old 09-28-2003, 12:11 PM   #4
Agileuk
LQ Newbie
 
Registered: Sep 2003
Distribution: Red Hat 9, KDE
Posts: 24

Original Poster
Rep: Reputation: 15
I have tried both options, but in both cases it says that both of my files:

bzip2: Compressed file ends unexpectedly; perhaps it is corrupted? *possible* reason follows.
bzip2: Inappropriate ioctl for device
Input file = (stdin), output file = (stdout)

It is possible that the compressed files have become corrupted. You can use the -tvv option to test integrity of such files.

Well I have tried to use -ttv, but it keeps on spitting out syntax errors, I am pretty sure that they are okay, but I cannot be sure. I was wondering if this is the case, or it is my methods that are at fault.

The files are rp9codecs.tar.bz2 and mplayer-1.0pre1.tar.bz2

Thanks

Agile
 
Old 09-28-2003, 12:16 PM   #5
Agileuk
LQ Newbie
 
Registered: Sep 2003
Distribution: Red Hat 9, KDE
Posts: 24

Original Poster
Rep: Reputation: 15
I have now managed to get bzip2recover to try and recover the file, all it has done though is extract the bz2 archive into 22 smaller archives, whitout wanting to sound rude, what do I do with this, as it is of no help at all!!

Thanks

Agile
 
Old 09-28-2003, 12:19 PM   #6
Nechos
Member
 
Registered: Sep 2003
Location: Italy
Distribution: Ubuntu 13.10
Posts: 304

Rep: Reputation: 30
it's the bunzip2 command first and when you get .tar do the tar -xvzf
 
Old 09-28-2003, 12:24 PM   #7
Agileuk
LQ Newbie
 
Registered: Sep 2003
Distribution: Red Hat 9, KDE
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Nechos
it's the bunzip2 command first and when you get .tar do the tar -xvzf
If I try to just bunzip2 {filename}
then i get the error that the file may have been corrupted, and it deletes the output.

Agile
 
Old 09-28-2003, 12:36 PM   #8
Nechos
Member
 
Registered: Sep 2003
Location: Italy
Distribution: Ubuntu 13.10
Posts: 304

Rep: Reputation: 30
do bunzip2 -t (for testing) if it finds a problem, do bzip2recover and after that bunzip2 should work
 
  


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
installing tar.bz2 files M O L8ingN2dust Mandriva 2 03-26-2005 03:46 AM
how do you install tar.bz2 files? Pbguru Linux - Newbie 1 07-25-2004 04:45 PM
extracting tar.bz2.gz files crank Linux - Newbie 5 04-18-2004 11:33 PM
How to extract tar.bz2 files? akihandyman Linux - Newbie 3 12-21-2003 03:17 PM
Opening .tar.bz2 files dominique Linux - Newbie 7 11-30-2001 02:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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