Score:4

What's the most appropriate directory where to place development software shared between users?

kz flag

For sharing data files and directories among users within the same machine, the /srv directory was recommended here:

I am assuming this is still valid or recommendded — correct me if that changed.

But what should be the directory for shared development-related software like Java, Maven, Gradle? They will all be installed by unpacking .tar.gz archives. A central location for programs would be preferred over repeated installations by each user in their respective home directory.

As an example, in order to work with CI like Jenkins I would have installed many JDK versions: 11, 15 and 17, and similarly for Gradle and Maven. These are used to test a project with different environments. The mentioned software packets are installed simply by unpacking the .tar.gz files and updating the .profile file with the respective settings for them. And yes, I use these repositories as well to install servers, such as MySQL, RabbitMQ etc ...

waltinator avatar
it flag
Read `man hier` to learn about the Linux Filesystem Hierarchy .
Peter - Reinstate Monica avatar
hn flag
I suppose that the software is not available through the package manager?
Score:8
jp flag

Since these software projects are installed by extracting a .tar.gz file it sounds like they are self-contained applications and I would install them in /opt/<project>. Another common choice is /usr/local, but I prefer that for source based installs.

Links

Score:4
td flag

Put it in /usr/local/, it is ignored by package managers.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.