← Back to context

Comment by immibis

4 days ago

I understand /usr/local to be for anything not managed by your distribution but following the standard system layout (e.g. Python that you compiled yourself) while /opt is used for things that are (relatively) self-contained and don't integrate with the system, similar to Program Files on Windows (e.g. a lot of Java software).

Regarding "that's a Linux-ism" - well yeah? Linux is the main OS this is about. FreeBSD can do what it wants, too.

> anything not managed by your distribution

That's a Linux-ism. Other *nix there is a lot more in /usr/local.

In reality /usr is similar to Windows' System32 directory on most Unicies.

/opt is really the only good place for Java and where I've been putting it for decades (old habits die hard).