tags:

views:

29

answers:

1

Which Java library are people using to create Solaris pkg software packages? We are developing an application that has, as one if its features, the ability to bundle backend services as a pkg software package which can be easily installed in Solaris. I am hoping that there is a Java library that makes building pkg's a painless process.

If there is no library for this could you point me to a resource that describes how to build a pkg?

A: 

I don't have any particular experience with it but you could maybe use the solaris-maven-plugin which seems to be a wrapper around pkgmk and pkgtrans. See the usage guide and the Best Practices and Examples document to get an idea of the involved steps.

See also ant script and solaris package for an ant based example (which also just calls the pkgmk and pkgtrans commands).

Pascal Thivent
Thanks for the response. I am more looking for a Java library that I can use to programmatically create a pkg software package that can then be taken to a Solaris system and installed. I can't rely on pkgmk being installed on the system.