LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What is bz.2 format (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-bz-2-format-510040/)

cnm 12-13-2006 09:19 AM

What is bz.2 format
 
I tried downloading a kernal version. It was a ".bz.2" file. What should I do with it?

reddazz 12-13-2006 09:37 AM

What is the exact name of the file you downloaded?

xgreen 12-13-2006 09:52 AM

tar -xvjf xxxx.bz2

fyi, bz2 is one of file compression type/format , just like .zip

man tar

reddazz 12-13-2006 10:13 AM

Quote:

Originally Posted by xgreen
tar -xvjf xxxx.bz2

fyi, bz2 is one of file compression type/format , just like .zip

man tar

If its a patch, then that command won't work even though the patch comes as a *bz2 file because the patches are gzipped or bzipped files but they are not tarred. If he downloaded a full kernel source, then yes the command will work.

charle97 12-13-2006 11:56 AM

try:

bunzip2 filename

cnm 12-15-2006 09:09 AM

Quote:

Originally Posted by cnm
I tried downloading a kernal version. It was a ".bz.2" file. What should I do with it?

OK I used bunzip2 connad. It worked. Now another Problem.
what should I use if the file ends with ".tar.bz"

reddazz 12-15-2006 09:14 AM

Quote:

what should I use if the file ends with ".tar.bz"
Code:

$tar xjvf somefile.tar.bz2
Sometimes you will see the files labelled as somefile.tbz. You use the same commands as above to extract the contents.


All times are GMT -5. The time now is 07:44 PM.