LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-07-2012, 12:18 PM   #1
danthemannewtolinux
LQ Newbie
 
Registered: Feb 2012
Posts: 22

Rep: Reputation: Disabled
Question 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??
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-07-2012, 02:28 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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.
 
Old 02-07-2012, 02:43 PM   #3
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Check this page for detailed information:

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

this will solve your problem.
 
1 members found this post helpful.
Old 02-07-2012, 02:45 PM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Moved: This thread is more suitable in Slackware and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 02-07-2012, 03:02 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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

Last edited by repo; 02-08-2012 at 02:18 AM. Reason: corrected the typo in the tar command, as suggested by other members.
 
Old 02-07-2012, 04:54 PM   #6
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
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
 
2 members found this post helpful.
Old 02-07-2012, 05:23 PM   #7
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
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
 
Old 02-07-2012, 10:37 PM   #8
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Quote:
Originally Posted by Cedrik View Post
You could have told what the typo was
Yep, I guess I should have done!

Quote:
Originally Posted by Cedrik View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tar - extract to different directory hcclnoodles Linux - Newbie 4 03-05-2011 03:47 PM
tar extract specific directory lrt Linux - Software 7 12-01-2007 08:40 AM
How to extract specific directory from a TAR file? Micro420 Linux - General 4 04-18-2007 12:04 AM
tar: how to extract only one directory from a backup guarriman Linux - General 1 01-29-2007 10:35 AM
How To extract .tar.gz To A Specific Directory? George2 Linux - Software 4 02-18-2006 07:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration