Specifications
Red Hat Enterprise Linux to Oracle Solaris Porting Guide
98
TABLE 10-4. PUBLISHING A PACKAGE
RHEL ORACLE SOLARIS 11
Once the package is ready, it can be published on
a Web server so it can be downloaded by end
users like any other download.
Suppose we have a repository named example.com.
To publish the package, ensure that it is read/write, not the default (read-
only). To accomplish this, run the following command:
oracle@solaris_11:~/work $ svccfg -s pkg/server setprop
pkg/readonly=false
Restart the server for the changes to take effect:
oracle@solaris_11:~/work $ svcadm restart
pkg/server:default
To publish the package, use the following command:
oracle@solaris_11:~/work $ pkgsend publish -s
http://example.com:9001 -d ./proto_inst
my_sample_depend
PUBLISHED
Now the package has successfully been published.
We can now check the status of our repository again to determine whether
our package got published:
oracle@solaris_11:~/work $ pkgrepo info -s
http://example.com:9001
PUBLISHER PACKAGES STATUS UPDATED
example.com 1 online date