Configuring /opt/local/ and /opt/local/dev

by ggt667
macOS ◆ xterm-256color ◆ bash 206 views

In a unix system /opt/ is for optional software, it’s not like your /Application folder on a Mac necessarily.

As pr example below

/opt/local/<<MyDAM>>/
/opt/local/bin/<<MyEXIFtool>>
/opt/local/dev/<<MyEXIFtool>>/
/opt/local/dev/<<MyDAM>>/
/opt/local/dev/swift/

Wheres /opt/local/dev/swift is downloaded from GitHub

cd /opt/local/dev
git clone https://github.com/apple/swift

Note that while /opt/local/dev holds the source code, /opt/local/<<projectname>> holds a larger project or installation, while /opt/local/bin holds single binaries such as ls