LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-13-2008, 06:47 PM   #1
pppaaarrrkkk
Member
 
Registered: Jun 2005
Location: Aylesbury UK
Distribution: Red Hat enterprise linux 6
Posts: 101

Rep: Reputation: 15
where should you unpack a tarball to ?


......I think the obvious place is /usr/bin ( I think ). But there are no directories in /usr/bin; it's only executables.

If I unpack some program to /usr/bin, I will fill it with sub-directories, which does not seem to be the convention.
 
Old 08-13-2008, 06:54 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Unpack it in your $HOME directory. Most, but not all, tarballs are source code that then needs to be configured, compiled, and installed. All this can and should be done from your $HOME directory. You only need root access to install and then only if you choose to install system-wide.
 
Old 08-13-2008, 06:56 PM   #3
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
I have always unpacked tars in /usr/src and compiled them from the unpacked directory structure therein.
 
Old 08-13-2008, 08:16 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
On fedora, it supplies an empty /opt dir during installation, so I always use that.
Fundamentally, its your choice, but not system dirs like /usr/bin imho.
 
Old 08-13-2008, 08:20 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,318

Rep: Reputation: 126Reputation: 126
To each his own. I usually create a new /data/<somedir> (where <somedir> is related to what I'm downloading) to unpack anything. This keeps the tarball from accidentally polluting some other directory space, and you do not want that to happen. It's easy enough to then move the directory created by tar to wherever I want it.
 
Old 08-13-2008, 08:26 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Yeah, to expand on my prev (and agree with Q'boy), keep a separate dir, even if you create your own. Do not pollute installed dirs.
 
Old 08-13-2008, 09:29 PM   #7
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
I try to maintain compliance with the FHS. Even though /usr/src sounds like the place to build software, it's intended to store source code for reference only. According to the FHS, source should not be built within this hierarchy; in fact /usr/src isn't even a required directory. /opt is actually intended to be used for installed packages and some precompiled binary packages will install there. I always use $HOME/tmp to build software, even new kernels. But, I agree with Quakeboy02, to each his own. I guess if you want to build software in /usr/bin no one's stopping you.
 
Old 08-14-2008, 12:25 PM   #8
pppaaarrrkkk
Member
 
Registered: Jun 2005
Location: Aylesbury UK
Distribution: Red Hat enterprise linux 6
Posts: 101

Original Poster
Rep: Reputation: 15
Thanks for replies.
 
  


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
unpack it with what? wally58 Linux - Newbie 5 03-02-2005 11:10 AM
unpack tarball error Stauffenberg Linux - Newbie 4 08-08-2004 03:25 AM
*.bz2 -- How do I unpack? nealkochhar Linux - Newbie 3 06-01-2004 07:35 PM
Unpack problem! Gerardoj Linux - General 3 08-08-2003 05:53 PM
how do you unpack digital bots Linux - Newbie 5 04-09-2002 04:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:34 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