{"id":1360,"date":"2022-02-05T15:46:29","date_gmt":"2022-02-05T15:46:29","guid":{"rendered":"\/blog\/?p=1360"},"modified":"2022-02-05T16:14:13","modified_gmt":"2022-02-05T16:14:13","slug":"create-an-ips-repo-in-solaris-11","status":"publish","type":"post","link":"\/blog\/index.php\/create-an-ips-repo-in-solaris-11\/","title":{"rendered":"Create an IPS repo in Solaris 11"},"content":{"rendered":"\n<p><strong>Create the zpool to hold the repos<\/strong><\/p>\n\n\n\n<p>root@solaris01:\/sol_11_repo# zpool create sol_11_repo c3d0s2<br>root@solaris01:\/sol_11_repo# zfs set atime=off sol_11_repo<br>root@solaris01:\/sol_11_repo# zfs set compression=zstd sol_11_repo<br>root@solaris01:\/sol_11_repo# zfs set compression=lz4 sol_11_repo<\/p>\n\n\n\n<p><strong>Copy the 5 zip files to the directory you will use and unzip them<\/strong><\/p>\n\n\n\n<p>root@solaris01:\/sol_11_repo# ls *zip<br>sol-11_4-repo_1of5.zip sol-11_4-repo_2of5.zip sol-11_4-repo_3of5.zip sol-11_4-repo_4of5.zip sol-11_4-repo_5of5.zip<br>root@solaris01:\/sol_11_repo# ls *zip | while read f;do unzip -oq $f; done<\/p>\n\n\n\n<p><strong>Create the repo and refresh it<\/strong><\/p>\n\n\n\n<p>root@solaris01:\/sol_11_repo# pkgrepo create \/sol_11_repo<br>root@solaris01:\/sol_11_repo# pkgrepo -s \/sol_11_repo refresh<br>root@solaris01:\/sol_11_repo# pkgrepo -s \/sol_11_repo\/ info<br>root@solaris01:\/sol_11_repo# zfs set sharenfs=on sol_11_repo<br>root@solaris01:\/sol_11_repo# svccfg -s application\/pkg\/server setprop pkg\/inst_root=\/sol_11_repo<br>root@solaris01:\/sol_11_repo# svccfg -s application\/pkg\/server setprop pkg\/readonly=true<br>root@solaris01:\/sol_11_repo# svcprop -p pkg\/inst_root application\/pkg\/server<br>root@solaris01:\/sol_11_repo# svcadm refresh application\/pkg\/server<br>root@solaris01:\/sol_11_repo# pkgrepo refresh -s \/sol_11_repo<br>Initiating repository refresh.<br><\/p>\n\n\n\n<p><strong>Make sure it is running in port 80<\/strong><\/p>\n\n\n\n<p>root@solaris01:~# svccfg -s application\/pkg\/server listprop | grep -i port<br>pkg\/port count 80<br>root@solaris01:~# svcadm refresh application\/pkg\/server<br>root@solaris01:~# svcadm enable application\/pkg\/server<br>root@solaris01:~# svcs | grep -i pkg\/server<br>online 9:53:25 svc:\/application\/pkg\/server:default<\/p>\n\n\n\n<p><strong>Get all the new packages from Oracle<\/strong><\/p>\n\n\n\n<p>root@solaris01:\/sol_11_repo# export PKG_SRC=http:\/\/pkg.oracle.com\/solaris\/release\/<br>root@solaris01:\/sol_11_repo# export PKG_DEST=\/sol_11_repo<br>root@solaris01:\/sol_11_repo# pkgrecv &#8216;*&#8217;<\/p>\n\n\n\n<p><strong>Receive all packages that do not already exist and all changed content<br>from the repository located at http:\/\/pkg.oracle.com\/solaris\/release\/<br>to the repository located at \/export\/repoSolaris11.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@solaris01:\/sol_11_repo# pkgrecv -s http:\/\/pkg.oracle.com\/solaris\/release\/ -d \/sol_11_repo -m all-timestamps '*'<\/code><\/pre>\n\n\n\n<p><strong>Setup a client to use our repo, and remove Oracle&#8217;s<\/strong><\/p>\n\n\n\n<p># pkg set -G \u2018*\u2019 -g http:\/\/192.168.5.17\/ solaris<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create the zpool to hold the repos root@solaris01:\/sol_11_repo# zpool create sol_11_repo c3d0s2root@solaris01:\/sol_11_repo# zfs set atime=off sol_11_reporoot@solaris01:\/sol_11_repo# zfs set compression=zstd sol_11_reporoot@solaris01:\/sol_11_repo# zfs set compression=lz4 sol_11_repo Copy the 5 zip files to the directory you will use and unzip them root@solaris01:\/sol_11_repo# ls *zipsol-11_4-repo_1of5.zip sol-11_4-repo_2of5.zip sol-11_4-repo_3of5.zip sol-11_4-repo_4of5.zip sol-11_4-repo_5of5.ziproot@solaris01:\/sol_11_repo# ls *zip | while read f;do unzip -oq $f; done [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1360","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1360"}],"version-history":[{"count":4,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1360\/revisions"}],"predecessor-version":[{"id":1366,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1360\/revisions\/1366"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1360"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}