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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-28-2003, 07:15 AM
|
#1
|
LQ Newbie
Registered: Sep 2003
Distribution: Red Hat 9, KDE
Posts: 24
Rep:
|
.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
|
|
|
09-28-2003, 07:38 AM
|
#2
|
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495
Rep:
|
% 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
|
|
|
09-28-2003, 07:47 AM
|
#3
|
Member
Registered: Nov 2000
Location: A Mid-Atlantic state
Distribution: SuSE 8.1,Knoppix 3.2,Mandrake 9.1
Posts: 388
Rep:
|
try:
tar -xjvf filename.tar.bz2
the -j option is used to unzip bz2
HTH
lynch
|
|
|
09-28-2003, 12:11 PM
|
#4
|
LQ Newbie
Registered: Sep 2003
Distribution: Red Hat 9, KDE
Posts: 24
Original Poster
Rep:
|
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
|
|
|
09-28-2003, 12:16 PM
|
#5
|
LQ Newbie
Registered: Sep 2003
Distribution: Red Hat 9, KDE
Posts: 24
Original Poster
Rep:
|
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
|
|
|
09-28-2003, 12:19 PM
|
#6
|
Member
Registered: Sep 2003
Location: Italy
Distribution: Ubuntu 13.10
Posts: 304
Rep:
|
it's the bunzip2 command first and when you get .tar do the tar -xvzf
|
|
|
09-28-2003, 12:24 PM
|
#7
|
LQ Newbie
Registered: Sep 2003
Distribution: Red Hat 9, KDE
Posts: 24
Original Poster
Rep:
|
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
|
|
|
09-28-2003, 12:36 PM
|
#8
|
Member
Registered: Sep 2003
Location: Italy
Distribution: Ubuntu 13.10
Posts: 304
Rep:
|
do bunzip2 -t (for testing) if it finds a problem, do bzip2recover and after that bunzip2 should work
|
|
|
All times are GMT -5. The time now is 12:01 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|