Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to install Netbeans 7.0.1 with a bash script from the Netbeans website. The default directory chosen by the installer is /home/geoffrey/netbeans-7.0.1. But I do not think it belongs there.

share|improve this question
    
Does the installer have an option '--help' or something similar, did you find/read any installation instructions? –  steabert Jan 12 '12 at 20:03
    
It is easy to change the install directory. The problem was just which directory to choose. –  systemovich Jan 12 '12 at 20:17
    
Aha, well, maybe it's just me but I did not get that from your question. –  steabert Jan 12 '12 at 20:21

3 Answers 3

up vote 3 down vote accepted

If you want it for all users, /opt is a great place.

/opt is for entire software packages (rather than those that are split up across the various directories). See the Filesystem Hierarchy Standard.

Google Chrome, for example, installs to /opt

share|improve this answer
    
Thanks! This looks like the standard way. –  systemovich Jan 12 '12 at 22:08

If you want it for a single user I would put it in ~/bin (or at least a link to the binary)

If you want it for all users, I would put it in /usr/local/bin (or at least a link to the binary).

share|improve this answer

I've created an ~/apps directory in which I store such external programs to avoid the home directory being cluttered.

I then create a symlink in ~/bin to programs in ~/apps. Storing everything in ~/bin or /usr/local/bin is a bad idea since the folder contains other files (non-binaries) too.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.