Personal Development for Smart People Forums

Personal Development for Smart PeopleTM Forums

 

Go Back   Personal Development for Smart People Forums > Personal Development > Technology & Technical Skills

Notices

Technology & Technical Skills Computer skills, hardware, software, internet topics, gadgets, programming

Reply
 
Thread Tools Display Modes
Old 07-28-2011, 05:13 AM   #1 (permalink)
Family Member
 
Join Date: Dec 2008
Location: Sitting by the fire at the Inn of the Last Home
Posts: 5,799
Plays With Life is absolutely unstoppablePlays With Life is absolutely unstoppablePlays With Life is absolutely unstoppablePlays With Life is absolutely unstoppablePlays With Life is absolutely unstoppablePlays With Life is absolutely unstoppablePlays With Life is absolutely unstoppablePlays With Life is absolutely unstoppablePlays With Life is absolutely unstoppablePlays With Life is absolutely unstoppablePlays With Life is absolutely unstoppable
Default /usr/local or /opt ?

UNIX users: Do you install software in /usr/local or /opt ? Which is better?
Plays With Life is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-28-2011, 07:41 AM   #2 (permalink)
Senior Member
 
Join Date: Nov 2006
Posts: 326
ragtag will become famous soon enoughragtag will become famous soon enough
Default

If you run

Code:
echo $PATH
in the terminal you'll likely see something like.

Code:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
This means that programs in /usr/local/bin will be automatically recognized, as they are in path, while those in /opt will not, and you'll have to add them to path. If you have a lot of programs, your PATH variable may get quite long.

But really, you can use either one. In general you would put the whole program in /opt in a single folder, such as /opt/jdk, while in /usr/local, you would follow the systems standard folder structure, using /usr/local/bin, /usr/local/lib and so on. I believe /opt is also the older way of doing things.

What I've done personally, which probably isn't the correct way, is to install custom software in /opt/programname/version and then create symbolic links as needed in /usr/local (generally just bin is enough). So for instance I have /opt/celtx/celtx-2.9 and a link /usr/local/bin/celtx -> /opt/celtx/celtx-2.9/celtx. This way I keep the program folders self contained, and can keep parallel versions on disk, so I only need to update the symbolic links for different versions.
ragtag is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Local Honey Andrew Brunelle Health & Fitness 4 05-31-2011 12:42 PM
do you buy local produce? smilingaway Health & Fitness 7 10-24-2010 08:38 PM
What is the most difficult exersize at the local gym? Doc4u Health & Fitness 34 09-27-2010 07:13 AM
Local foods. InterfaceLeader Health & Fitness 1 08-20-2008 07:43 PM
SEO for local business Brutha Technology & Technical Skills 5 08-29-2007 04:30 AM


All times are GMT. The time now is 12:48 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2010 by Pavlina LLC