I'm installing some software by cloning a git repo onto my local machine. I plan on creating a soft link to the binary made from the source in the repo to /usr/local/bin
. Where should I put the git repo on my local machine? Is /usr/local/src
the place?
Asked
Active
Viewed 33 times
0

Vojtech Trefny
- 18,146

cnnrmnn
- 1
1 Answers
1
Since you tagged this question "Darwin", I assume you use macOS. In which case, Xcode clones repositories by default to ~/Documents
.
Another convention used to be used by System V, was to create individual project (or application distribution) directories in /opt
. MacPorts does store its working directories in /opt/local
by the way.
The "File Hierarchy Standard" has other recommendations.

DannyNiu
- 620
- 5
- 19