Install dmg file by command line on Mac

 

for example:

smartgit-macosx-17_1_3.dmg

 

1. attach dmg file

hdiutil attach smartgit-macosx-17_1_3.dmg

2. copy smartgit to applications

cd /Volumes

sudo cp -r SmartGit.app /Applications

3. chown 

cd Applications

chown -R frank:admin SmartGit.app

4. detach SmartGit

hdiutil detach /Volumes/SmartGit\ 17.1.3

5. find SmartGit by LaunchPad

double click SmartGit

 

all is ok.

 

posted on 2017-12-22 16:47  fanbird2008  阅读(172)  评论(0)    收藏  举报

导航