I'm currently installing NetBeans, and the default install directory is /home/thomasowens/netbeans-6.8. I'm not a fan of that location, so I'm looking at /etc, /bin, /usr/bin, and /sbin. Does Linux have a place that, by convention, is the same as Windows' C:\Program Files directory?
| ||||
|
feedback
|
|
According to the Filesystem Hierarchy Standard, there are several places that are acceptable, depending on the application. I'm quoting from it extensively here.
Taking these together:
There's one other use for /usr/local though. Most things that you install through your distro's package manager will be placed under /usr; many people put things they've compiled by hand under /usr/local instead. This keeps them out of the way of the package management system and lets you spot what you installed from the distro (and don't need to back up because you can grab it again) and what you compiled by hand; it also lets you run different versions at the same time (eg, /usr/bin/firefox vs /usr/local/bin/firefox). Just when you thought things were settled, there's one other place, which is probably the closest equivalent of
| |||||||||
feedback
|
|
Really it comes down to personal preference. I'll explain mine for what its worth. /usr, /usr/bin are usually places for software installed by the system to be installed. When I install things myself, I intall in one of several places:
Why do I distinguish between #2 & #3? No idea, it's just a habit that I've developed over time. It does work out that that /opt usually ends up becoming a deep tree of files, but has only 2 or 3 actual 'things' installed. At this momnet I have lampp and lotus notes installed in opt, 2 directories that each have rather large trees beneath them. In /usr/local/bin I have 20 or 30 entries, but no subdirectory. I don't install things in /usr/bin or /usr/sbin because I like to keep things that I add manually (not part of simply installing from the standard repository) separate. | |||
|
feedback
|
|
I would have thought that the default location is ... However, when it comes to more modern programs (or ones without an installer) that have a lot of additional files, I like to place them in their own directory within | |||||
feedback
|
|
Usually they install in multiple folders, mainly /usr, /local, /bin, etc. You can find out where the program installs to from the GDebi Installer (under the files tab). If you're going to move Netbeans, I'd suggest moving it to /opt, because that's where Google seems to install its stuff. | |||
|
feedback
|
|
While the Filesystem Hierarchy Standard does provide some guidance. I've found that most distributions like to install packages into Because of this, I've adopted the practice of installing any application not installed via package manager (rpm / apt-get / emerge) in It's a technique that has helped me manage my system under both Fedora Core and Gentoo. | |||
|
feedback
|
|
Agreeing with James Polley's answer, but in fact the default directory makes a lot of sense unless you need to share the application between multiple accounts. I, for instance, needed to install Eclipse 3.0 (obsolete) in order to do Flex work under Linux, and I put it in $HOME/eclipse3. | |||
|
feedback
|
