Skip to content

Instantly share code, notes, and snippets.

@nutrino
Last active February 12, 2023 13:50
Show Gist options
  • Save nutrino/be71e8e2aec1ce9bf4fee43c9b890ddc to your computer and use it in GitHub Desktop.
Save nutrino/be71e8e2aec1ce9bf4fee43c9b890ddc to your computer and use it in GitHub Desktop.
macOS dmg install via command (specific destination disk enabler)
  1. Mount .dmg file (dbl-click)

  2. Open Terminal.

cd /Volumes/Samsung\ DeX

sudo installer -verboseR -dumplog -pkg Install\ Samsung\ DeX.pkg -target /

  1. Reboot
@nutrino
Copy link
Author

nutrino commented Feb 11, 2023

sudo installer -verboseR -dumplog -pkg Install\ T-RackS\ 5\ (Ver.\ 5.10.1).pkg -target /Volumes/SDUltra/

@nutrino
Copy link
Author

nutrino commented Feb 12, 2023

find . -type d -maxdepth 1 -name "*" > ~/foundlist2.txt

cat ~/foundlist2.txt | xargs -I{} find {} -type f -name "*.pkg" | xargs -I{} cp -rv {} /Volumes/SFC520/Compose/IK\ Multimedia/

@nutrino
Copy link
Author

nutrino commented Feb 12, 2023

#cat ~/foundlist2.txt | xargs -I{} find {} -type f -name ".pkg" | xargs -I{} ls "{}"
cat ~/foundlist2.txt | xargs -I{} find {} -type f -name "
.pkg" | xargs -I{} installer -verboseR -dumplog -pkg "{}" -target /Volumes/SDUltra/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment