LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to extract tar.gz files to root directory with slackware (https://www.linuxquestions.org/questions/slackware-14/how-to-extract-tar-gz-files-to-root-directory-with-slackware-928140/)

danthemannewtolinux 02-07-2012 12:18 PM

How to extract tar.gz files to root directory with slackware
 
could someone please give me detailed instructions on how to extract and install the tar.gz files that you download, I'm new to this and would like to install opera browser on vector linux and getting very confused on how to install things with linux. any help would be appreciated??

suicidaleggroll 02-07-2012 02:28 PM

It depends on the archive. Sometimes the archive contains pre-compiled binaries, in which case you'd just need to copy the extracted directory to some common location (say, /usr/local/), and then symlink the executable into your path (say, /usr/local/bin/). Sometimes the archive just contains the source, and you have to compile and install it. In this case, there is probably a README or INSTALL file that will give you instructions on what to do.

In either case, you can extract it with:
Code:

mkdir temp
mv file.tar.gz temp
cd temp
tar -zxvf file.tar.gz

Replacing "file.tar.gz" with the actual filename.

Once it's extracted, cd into the directory and see what's there.

Satyaveer Arya 02-07-2012 02:43 PM

Check this page for detailed information:

http://www.basicconfig.com/linuxtips...file_slackware

this will solve your problem.

colucix 02-07-2012 02:45 PM

Moved: This thread is more suitable in Slackware and has been moved accordingly to help your thread/question get the exposure it deserves.

repo 02-07-2012 03:02 PM

Download the file
opera-11.61-1250.i386.linux.tar.bz2
Then as root
Code:

tar xvjf opera-11.61-1250.i386.linux.tar.bz2
cd opera-11.61-1250.i386.linux
./install

Follow the instructions

Kind regards

ruario 02-07-2012 04:54 PM

You do not want to extract the Opera tar packages to your root directory.

Repo has the right idea but made a typo in his command. ;)

The answer to your question is here:

http://my.opera.com/ruario/blog/sele...-installing-it

Cedrik 02-07-2012 05:23 PM

You could have told what the typo was :)
(c is tar option for create archive, x is the option to expand)

Also with tar modern version, no need to use z or j anymore
tar xvf bla.tar.bz2
tar xvf bla.tar.gz

ruario 02-07-2012 10:37 PM

Quote:

Originally Posted by Cedrik (Post 4596480)
You could have told what the typo was :)

Yep, I guess I should have done!

Quote:

Originally Posted by Cedrik (Post 4596480)
Also with tar modern version, no need to use z or j anymore
tar xvf bla.tar.bz2
tar xvf bla.tar.gz

And 'v' is optional. Personally I don't usually want the list of extracted files echoed back to me.


All times are GMT -5. The time now is 06:33 AM.