solaris 11 exercise ips (10) add second pkg server instance

In this exercise you will setup a second instance of the application/pkg/server service.

This means that you will have a second environment on the
same machine from which you can publish your own software
packages.

1. Add second instance.
# svccfg -s pkg/server add s11ReleaseRepo

2. Set the service's port to 10081; set the inst_root and set readonly to true.
# svccfg -s pkg/server:s11ReleaseRepo setprop pkg/port=10081
# svccfg -s pkg/server:s11ReleaseRepo setprop pkg/inst_root=/export/S11ReleaseRepo
# svccfg -s pkg/server:s11ReleaseRepo setprop pkg/readonly=true

3. Set the proxy_base and the number of threads.
# svccfg -s pkg/server:s11ReleaseRepo setprop pkg/proxy_base = astring: http://pkg.example.com/s11ReleaseRepo
# svccfg -s pkg/server:s11ReleaseRepo setprop pkg/threads = 200

4. Refresh and enable
# svcadm refresh application/pkg/server:S11ReleaseRepo
# svcadm enable application/pkg/server:S11ReleaseRepo
Listing 1. Configuring the Release Repository Service

This entry was posted in solaris. Bookmark the permalink.

Comments are closed.