Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-06-2004, 10:17 AM
|
#1
|
LQ Newbie
Registered: Oct 2004
Posts: 12
Rep:
|
Where to install software /opt? or /usr/local?
I am wondering where I should install software at. Taking look at the the Fllesystem Hierarchy Standard site ( http://pathname.com), it has the following definitions:
/usr/local - for use by the system administrator when installing software locally.
/opt - reserved for the installation of add-on application software packages.
They both seem to say the samething, or are they?
Should I maybe put system type software (i.e. java runtime. mysql, etc.) into /usr/local and user specific software (open office, mp3 players, etc.) into /opt?
Let me know what you guys/girls think.
cheers,
scott
|
|
|
11-06-2004, 10:24 AM
|
#2
|
Member
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558
Rep:
|
I mount /usr/local to its own partition, and use it for all software that I compile from source. Most source packages install to /usr/local as default.
/opt is used by some distros, like Slackware, but not others (like Kanotix). Its use depends on your distro. Some distros will put self-contained packages (like Mozilla and OpenOffice) there; I believe Slack puts KDE and Gnome there too.
In the end, it doesn't really matter. Both locations are there for you to use so that user-installed software doesn't get mixed up with your distro-installed software.
|
|
|
11-06-2004, 11:53 AM
|
#3
|
Member
Registered: Mar 2004
Location: Pocatello, Idaho, USA
Distribution: Ubuntu
Posts: 256
Rep:
|
I compile Software to my /usr/local/src and it works fine for me.
|
|
|
11-08-2004, 03:09 AM
|
#4
|
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897
Rep:
|
/opt is for "self-contained" software. For example, you would install Netscape and Java there:
/opt/java2/bin, lib, doc...
/opt/netscape/bin, ...
Every file is inside /opt/name of program/. So you usually have to edit PATH.
/usr/local is for programs that follow the Unix structure (binaries in $prefix/bin, includes in $prefix/include...). Hence if the program you want to install is "Unix-compliant" and lets you choose the prefix, then you should install it in /usr/local.
That's the theory. Myself, I've found that programs installed in /usr/local are difficult to manage/upgrade/uninstall, because all files of all programs are together.
So I chose to do it "GoboLinux-like": I install the programs under /opt/program name/.
Example for Matchbox: I install it under prefix /opt/matchbox-0.8.4. As I see it, it is OK because then, the program *is* self-contained. And to make it work like if it were in /usr/local, I create symbolic links of everything under /opt/matchbox-0.8.4 from there to /usr/local. I end-up with links like that:
/usr/local/bin/matchbox-session -> /opt/matchbox-0.8.4/bin/matchbox-session
Yves.
|
|
|
08-23-2013, 11:22 PM
|
#5
|
LQ Newbie
Registered: Jul 2013
Location: United States
Posts: 16
Rep: 
|
If you install something, it usually goes into /usr/local/bin or, if it's an administrative application, /usr/local/sbin.
Sometimes you see extra applications in /opt. Any applications that come pre-installed with your OS, or installed by the OS
developer's pre-compiled repositories, will usually end up in /bin or /sbin.
|
|
|
All times are GMT -5. The time now is 06:14 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|