|
|||
4. Creating and Managing Images Creating and Publishing Packages to a Repository 7. Using Keys and Certificates for Repositories |
Creating RepositoriesThe IPS software in the 2009.06 release of OpenSolaris enables developers to perform a variety of tasks related to creating and publishing packages. The following tasks are supported for the 2009.06 release.
How to Create Your Own OpenSolaris Repository Using pkg.depotd Command
Example 6-1 Creating Your Own Repository Using pkg.depotdThis example creates an OpenSolaris repository repository1 with a port value of 11000 and shows the contents of the repository. $ /usr/lib/pkg.depotd -d /tmp/testrepo -p 11000 [06/Nov/2008:13:43:26] INDEX Search Available [06/Nov/2008:13:43:26] ENGINE Listening for SIGHUP. [06/Nov/2008:13:43:26] ENGINE Listening for SIGTERM. [06/Nov/2008:13:43:26] ENGINE Listening for SIGUSR1. [06/Nov/2008:13:43:26] ENGINE Bus STARTING [06/Nov/2008:13:43:26] ENGINE Started monitor thread '_TimeoutMonitor'. [06/Nov/2008:13:43:26] ENGINE Serving on 0.0.0.0:11000 [06/Nov/2008:13:43:26] ENGINE Bus STARTED $ ls /export/home/user1/repository1 catalog file pkg search.dir search.pag trans updatelog How to Create Your Own OpenSolaris Repository Using SMF Commands
Example 6-2 Creating Your OpenSolaris Repository Using SMF CommandsThis example creates an OpenSolaris repository, repository2 with a port value of 8000 and shows the contents of the repository. # svccfg -s application/pkg/server setprop pkg/port=8000 # svccfg -s application/pkg/server setprop pkg/inst_root=/export/home/user1/repository2 # svcadm refresh application/pkg/server # svcadm restart application/pkg/server # ls /export/home/user1/repository2 catalog file pkg search.dir search.pag trans updatelog |
||
|