I have a directory full of pkg files that I need to install. I tried "installer -packages *.pkg" , but that didn't work. Any ideas on how to do this? Do I need to make a metapackage?
1 Answer
Use cycle for this. You can type next in your terminal command line:
for f in *.pkg; do installer -packages "$f"; done - 2Quote the variable:
installer -packages "$f"will help avoid things failing or possibly going horribly awry should any of the package files have spaces in their names.thrig– thrig2017-06-26 14:04:02 +00:00Commented Jun 26, 2017 at 14:04 -