{"id":241,"date":"2016-02-04T08:30:23","date_gmt":"2016-02-04T07:30:23","guid":{"rendered":"http:\/\/www.lambiek.eu\/blog\/?p=241"},"modified":"2016-02-04T15:23:53","modified_gmt":"2016-02-04T14:23:53","slug":"solaris-local-repository","status":"publish","type":"post","link":"https:\/\/www.lambiek.eu\/blog\/tutorial\/solaris-local-repository\/","title":{"rendered":"Solaris local repository"},"content":{"rendered":"<p>Oracle recommends the use of a local repository for deployment and patching of your systems. In all cases you will need the General Available (GA) release, together with the SRUs.<\/p>\n<p>First, create a ZFS filesystem to hold the repository:<\/p>\n<pre class=\"lang:default decode:true \" title=\"Create ZFS filesystem to contain the local repository\" >zfs create data\/solaris-repository<\/pre>\n<p>Then extract the GA repository which you downloaded from Oracle.com using:<\/p>\n<pre class=\"lang:default decode:true \" title=\"Extract 11.3GA\" >unzip -q V78247-01.zip\r\nksh .\/install-repo.ksh -d \/data\/solaris-repository\r\nUsing V78246-01 files for sol-11_3-repo download.\r\nUncompressing V78246-01_1of5.zip...done.\r\nUncompressing V78246-01_2of5.zip...done.\r\nUncompressing V78246-01_3of5.zip...done.\r\nUncompressing V78246-01_4of5.zip...done.\r\nUncompressing V78246-01_5of5.zip...done.\r\nRepository can be found in \/data\/solaris-repository.<\/pre>\n<p>Followed by:<\/p>\n<pre class=\"lang:default decode:true \" title=\"Download latest SRU from Oracle\" >pkgrepo create -s \/data\/solaris-repository\r\npkgrecv -s https:\/\/pkg.oracle.com\/solaris\/support -d \/data\/solaris-repository --key \/path\/to\/key-file --cert \/path\/to\/certificate -m latest '*'<\/pre>\n<p>While the above process runs, download the SRUs from Oracle.com and after the pkgrecv process completes apply the downloaded SRUs using:<\/p>\n<pre class=\"lang:default decode:true \" title=\"extract downloaded SRUs\" >unzip -oq repo-file.zip -d \/data\/solaris-repository<\/pre>\n<p>The next step is to rebuild the repository:<\/p>\n<pre class=\"lang:default decode:true \" title=\"pkgrepo rebuild repository\" >pkgrepo rebuild -s \/data\/solaris-repository<\/pre>\n<p>Now you can verify which SRUs are available in your local repository:<\/p>\n<pre class=\"lang:default decode:true \" title=\"pkgrepo list available SRUs\" >pkgrepo list -s \/data\/solaris-repository entire\r\nPUBLISHER NAME                                          O VERSION\r\nsolaris   entire                                          0.5.11,5.11-0.175.3.4.0.5.0:20160114T213235Z\r\nsolaris   entire                                          0.5.11,5.11-0.175.3.3.0.6.0:20151213T201320Z\r\nsolaris   entire                                          0.5.11,5.11-0.175.3.2.0.4.0:20151103T235040Z\r\nsolaris   entire                                          0.5.11,5.11-0.175.3.1.0.5.0:20151006T140051Z<\/pre>\n<p>If you do not have the intermediate SRUs &#8211; which are incremental updates &#8211; necessary to update your client you might receive the following error when you run &#8216;pkg update -nv&#8217;:<\/p>\n<pre class=\"lang:default decode:true \" title=\"Error when updating a client without having the necessary SRUs in the local repository\" >Reject: pkg:\/\/solaris\/entire@0.5.11-0.175.3.4.0.5.0\r\nReason: No version for 'incorporate' dependency on consolidation\/java-7\/java-7-incorporation@1.7.0.91.15,5.11-0 can be found<\/pre>\n<p>References:<\/p>\n<p>Oracle.com \/ Downloads \/ Solaris \/ Local Repository<br \/>\n<a href=\"http:\/\/www.oracle.com\/technetwork\/server-storage\/solaris11\/downloads\/local-repository-2245081.html\" target=\"_blank\">http:\/\/www.oracle.com\/technetwork\/server-storage\/solaris11\/downloads\/local-repository-2245081.html<\/a><\/p>\n<p>Where to download Oracle Solaris ISO images and Update Releases (Doc ID 1277964.1)<br \/>\n<a href=\"https:\/\/support.oracle.com\/epmos\/faces\/DocumentDisplay?id=1277964.1\" target=\"_blank\">https:\/\/support.oracle.com\/epmos\/faces\/DocumentDisplay?id=1277964.1<\/a><\/p>\n<p>Oracle Solaris 11.3 Support Repository Updates (SRU) Index (Doc ID 2045311.1)<br \/>\n<a href=\"https:\/\/support.oracle.com\/epmos\/faces\/DocumentDisplay?id=2045311.1\" target=\"_blank\">https:\/\/support.oracle.com\/epmos\/faces\/DocumentDisplay?id=2045311.1<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oracle recommends the use of a local repository for deployment and patching of your systems. In all cases you will need the General Available (GA) release, together with the SRUs. First, create a ZFS filesystem to hold the repository: zfs create data\/solaris-repository Then extract the GA repository which you downloaded from Oracle.com using: unzip -q &#8230; <span class=\"more\"><a class=\"more-link\" href=\"https:\/\/www.lambiek.eu\/blog\/tutorial\/solaris-local-repository\/\">[Read more&#8230;]<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[13],"_links":{"self":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/241"}],"collection":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/comments?post=241"}],"version-history":[{"count":4,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/241\/revisions"}],"predecessor-version":[{"id":245,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/posts\/241\/revisions\/245"}],"wp:attachment":[{"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/media?parent=241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/categories?post=241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lambiek.eu\/blog\/wp-json\/wp\/v2\/tags?post=241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}