Sometimes,you want to configure multiple IPS repository running in one server.Such as solaris repository and solaris cluster repository or update repository coexist in one server.To do that you must use Solaris SMF to Manage the pkg.depotd processes as services.For more information from here.I'm going to show you how to add a ha-cluster instance to the pkg/server service.
1.Create a filesystem or directory to save the repository data
[root@pkg:~]#mkdir /u01/osc4
2.Using pkgrepo command to create the ha-cluster skeleton repository
[root@pkg:~]# pkgrepo create /u01/osc4
[root@pkg:~]# pkgrepo set -s /u01/osc4 publisher/prefix=ha-cluster
[root@pkg:u01]# more /u01/osc4/pkg5.repository
[publisher]
prefix = ha-cluster
[CONFIGURATION]
version = 4
[repository]
version = 4
3.Add a new instance of the pkg/server service
[root@pkg:~]# svccfg -s pkg/server add osc4 //osc4 is my new instance name