How can I install hundreds of pkg files?

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?


Use cycle for this. You can type next in your terminal command line:

for f in *.pkg; do installer -packages "$f"; done