LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2015, 10:36 PM   #1
rsicard
LQ Newbie
 
Registered: Apr 2015
Posts: 2

Rep: Reputation: Disabled
Unpacking tar.gz files and placing where executable


Fresh Newbie to Linux. Used to be good at DOS commands. Used Norton Commander a lot. Now have to learn the ins and outs of Linux. Need help with subject. Thanks.
 
Old 04-27-2015, 10:42 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,680
Blog Entries: 12

Rep: Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902
If you are talking about installing software from *.tar.gz files, you will need to learn about compiling from sources. It's really not all that complicated, unless you must resolve lots of dependencies.

You would do better, though, to get your software from the Ubuntu repositories (your user agent icon says "Ubuntu," but, if you are using a Ubuntu derivative, this also applies). Generally, in most Linux distributions, you don't download random files from websites and install programs; you install the programs from the repositories (commonly referred to as "repos"). The files in the repos have been vetted and tested. In addition, most package managers (programs are referred to as "packages" and the programs you use to install and remove them are "package managers") resolve any dependencies automagically.

This article gives a good explanation of repos and how they work.

And welcome to LQ.

Last edited by frankbell; 04-27-2015 at 10:49 PM.
 
Old 04-28-2015, 12:32 AM   #3
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
To unpack:

Code:
tar -xf package.tar.xz
And copy over your required files.

Read FHS (File Hierarchy Standard) to learn about Linux Filesand Directory Layout).

These days very few Linux Distributions distribute using tar packages. Instead they use RPM, DPKG and some other.
 
Old 04-28-2015, 12:50 AM   #4
sekar2488
LQ Newbie
 
Registered: Jul 2012
Posts: 5

Rep: Reputation: Disabled
To unpack, use the command

tar -xvf xxx.tar

if your file extension ends is with .gz then go for

tar -xvzf xxx.tar.gz
 
Old 04-28-2015, 07:34 PM   #5
Rebekah
LQ Newbie
 
Registered: Apr 2015
Location: Iowa
Distribution: Debian
Posts: 15

Rep: Reputation: 8
http://c.learncodethehardway.org/book/ex4.html

^a good tutorial

Like others have said, though, better to use apt-get to install stuff, or the software center. If you use the tools meant to do the job, you get fewer little problems later on, especially when it comes to updating and/or uninstalling.

Also see: https://wiki.debian.org/DontBreakDebian
 
Old 04-28-2015, 10:03 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,986

Rep: Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447Reputation: 2447
almost all tarbals are SOURCE
and you DO NOT just copy files places

you build the source code and use the autotools to install it
the default
Code:
./configure
make
su
make install
but not all tarbals are source
a VERY FEW are prebuilt self contained programs
like firefox-37.0.2
https://ftp.mozilla.org/pub/mozilla....-x86_64/en-US/

for these you do NOT copy anything anywhere
 
Old 05-06-2015, 09:59 PM   #7
rsicard
LQ Newbie
 
Registered: Apr 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Unpack tar.gz packed files

Will try to absorb all the responses. Thanks much. Still a Newbie. Have not gotten very far. Still trying to understand the cryptic nature of Linux.
 
Old 05-06-2015, 10:57 PM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,603
Blog Entries: 25

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Member response

Hi,

Welcome to LQ!
Quote:
Originally Posted by rsicard View Post
Fresh Newbie to Linux. Used to be good at DOS commands. Used Norton Commander a lot. Now have to learn the ins and outs of Linux. Need help with subject. Thanks.
I like to provide to new users that have requests of this sort the following;
Quote:
Just a few links to aid you to gaining some understanding;
Hope this helps.
Have fun & enjoy!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Unpacking tar.bz2 files on BackTrack from the GUI DFDillon Linux - Newbie 4 09-28-2014 02:45 PM
Unpacking and installation of tar.gz files imhodge Linux - Newbie 4 02-05-2014 01:03 AM
unpacking .tar.gz files crazibri Linux - Newbie 5 03-24-2004 03:19 AM
unpacking tar file Longinus Slackware 4 12-14-2003 03:04 AM
unpacking multiple .tar.gz files illtbagu Linux - General 5 01-18-2003 06:43 PM


All times are GMT -5. The time now is 04:14 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration