Solaris packages can be stored as a single file, or as a directory tree of files. The -d option supports installing multiple packages if they're stored in the directory tree format. You can use pkgtrans
to unpack package files:
pkgtrans FOObar.pkg /var/tmp/pkgs
This would create a directory /var/tmp/pkgs/FOObar
, containing the files and subdirectories that make up the package. You could unpack all of your packages into the same place, then run:
pkgadd -d /var/tmp/pkgs all
to install all of them at once.
I haven't tried this, but the pkgadd -s
option claims to unpack packages to /var/spool/pkg
, and pkgadd without -d looks for packages in that directory. So the sequence:
pkgadd -s file1.pkg
pkgadd -s file2.pkg
...
pkgadd all
will probably also work.