LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   *.bz2 -- How do I unpack? (https://www.linuxquestions.org/questions/linux-newbie-8/%2A-bz2-how-do-i-unpack-188512/)

nealkochhar 06-01-2004 02:10 PM

*.bz2 -- How do I unpack?
 
I'm trying to install the 2.6.6 kernel from www.kernel.org

This is the filename:

linux-2.6.6.tar.bz2

It's in my /usr/src directory.

When I type (as a command): # tar -zxvf linux-2.6.6.tar.bz2

It says "not in standard zip format"

What's the command I need to use to unpack this sucker?

Nis 06-01-2004 02:12 PM

Code:

tar -xfvj linux-2.6.6.tar.bz2

lyceum 06-01-2004 02:14 PM

tar -xvjf filename

the z flag is for files compressed using gzip, the j flag is for files compressed using bzip.

gzip files end in .gz bzip files end in .bz2

hope this helps

EDIT: you beat me to it Nis

flamah 06-01-2004 06:35 PM

or you can use - bunzip2 <filename>


All times are GMT -5. The time now is 11:40 AM.