LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gg (https://www.linuxquestions.org/questions/linux-newbie-8/gg-403411/)

Kale.ktc 01-14-2006 06:44 PM

bz2 driver install
 
Hello,

Just installed Slackware 10.1 not too long ago. This is my first distro and I am would like to know how to exectue a bz2 file. The bz2 file (which is a driver I need to setup my nic) was in my windows partition, and I mounted it to linux, got the bz2, but when I opened it all I got was C code files. I have never tried to execute a program in linux and I was wondering how I should go about doing this so I can install this driver and get my network running. Thanks in advance!

Kale.ktc 01-14-2006 07:54 PM

Ok I read the tut on .tar files but none of them mention tar.bz2...is it any different? Sorry for the messed up subject name by the way :(

JimBass 01-15-2006 10:23 AM

A tar.bz file is just a compressed tar file. It doesn't "execute" anything however. It is a similiar thing to a .zip file in other OSes. You didn't read the man page of tar too well, as it tells you the -j modifier is to extract or compress a bz2 file. So if we make the assumptions that the file you downloaded is called something.tar.bz and you have it in /home/Kale.ktc, I would do this:

Code:

cd /home/Kale.ktc
tar -jxvf something.tar.bz

That will extract the compressed files. The modifiers, j tells the tar program that the file to work on is compressed by bz2, x is for extract, v is verbose, so it tells you everything it is unpacking, and f tells it you are pointing it at the standard input file. Everything will be extracted to the current directory, which is /home/Kale.ktc in the example. Most tar.bz files will create their own new directory, usually named the same as the tar file itself. In our example, that would create a new directory called something in /home/Kale.ktc, so you can cd into the new something directory, and work with whatever is there.

Peace,
JimBass


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