7

Is there a convention that says where I should put programs I download if I want to make them available to all users? Blender, for example, appears to have a compiled executable, but also other directories and files that it (presumably) depends on.

The answer to To which directory should I install a program from a bash script? recommended /opt, but it isn't in my $PATH by default, and my /opt happens to be empty despite installing a lot of stuff from Ubuntu Software Center.

1

2 Answers 2

15

The preferred method for that is /opt, although some people are known to put them in /usr/local/bin

As for your other question related to the Ubuntu Software center, not all packages in the Ubuntu Software Center are set to install to /opt - in fact, most of them don't follow that "standard".

2
  • So why isn't /opt included in $PATH "out of the box"?
    – Evan
    Jan 24, 2012 at 15:59
  • @Evan I'm not sure. I'll update my answer if I find anything though.
    – jrg
    Jan 24, 2012 at 16:12
1

You will get varied opinions on this, even in the documentation.

http://www.debian.org/doc/manuals/debian-reference/ch12.en.html#_compile_and_install_a_program

http://wiki.debian.org/FilesystemHierarchyStandard

On the second link, scroll down to /opt and /usr

As pointed out, I personally tend to use /usr/local as it is on the $PATH

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .