Find the answer to your Linux question:
Results 1 to 5 of 5
I'm running debian 4 r2. I've got this file called: phpBB-3.0.0.tar.bz2 - I'm trying to extract the files so that I can install the program. How do I extract this ...
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    36

    .tar.bz2 files. How do I extract?

    I'm running debian 4 r2. I've got this file called: phpBB-3.0.0.tar.bz2 - I'm trying to extract the files so that I can install the program.

    How do I extract this junk? I've tried

    Code:
     tar xvf phpBB-3.0.0.tar.bz2
    bunzip2 phpBB-3.0.0.tar.bz2
    tar -xvjf ....
    tar -jxvf .....
    The results I get are either:

    Code:
      
    
    tar: bzip2: Cannot exec: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    or this

    Code:
     
    -bash: bunzip2: command not found
    I understand the issue with the second one. Quite obvious, but what Isn't working on the other commands? Is there some program I need to extract this file type?

    I have tried using Google and the search function on this forum, but nothing has worked yet. I'd really really appreciate some help.

    Thanks

  2. #2
    Linux Newbie
    Join Date
    Jan 2008
    Location
    UK
    Posts
    211
    Assuming you have it installed try below

    Rename the file you've downloaded to plain bzip2 (or bzip2.exe on Windows), and use it. Unix folks will also need to set the permissions suitably (chmod u+x bzip2).

    To decompress a .bz2 file:
    % bzip2 -d my_file.bz2

    I am not sure what otherutilities support bzip2 compression.

  3. #3
    Linux Newbie
    Join Date
    Nov 2007
    Location
    Planet Earth
    Posts
    152
    Actually, the option:
    Code:
    tar -vxjf phpBB-3.0.0.tar.bz2
    should work... did you check the md5sum of your downloaded file?

    Hugo
    EOF

  4. #4
    Just Joined!
    Join Date
    Feb 2008
    Posts
    18
    Hi, I think you are missing the the bzip2 package. Install it, this will provide the bunzip2 command as well. --Japser.

  5. #5
    Just Joined!
    Join Date
    Mar 2007
    Posts
    36
    Hey you all.

    Thanks for the prompt resonses. What I did was install the bzip2 package, then ran:
    Code:
    bunzip2 php*
    that changed it into the tar file, where I was able to use

    Code:
    tar xvf php*
    to extract it. Problem solved, thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •