{"id":932,"date":"2012-07-19T18:09:43","date_gmt":"2012-07-19T14:09:43","guid":{"rendered":"http:\/\/www.unixpin.com\/wordpress\/?p=932"},"modified":"2012-07-20T10:33:23","modified_gmt":"2012-07-20T06:33:23","slug":"solaris-11-ips","status":"publish","type":"post","link":"https:\/\/www.unixpin.com\/?p=932","title":{"rendered":"Solaris 11:  Image Packaging System"},"content":{"rendered":"<p>\u0412 Solaris 11 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043d\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043a\u0430\u0434\u0436\u0430\u043c\u0438 IPS (Image Packaging System) .<br \/>\n\u0421\u043c\u044b\u0441\u043b \u0442\u0430\u043a\u043e\u0439 &#8212; \u0435\u0441\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u043d\u0443 \u0442\u043e\u0447\u043d\u0435\u0435 \u043f\u0430\u043a\u0430\u0434\u0436\u0435\u0439, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u043d\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442). \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438\u0437 iso-\u0448\u043a\u0438<br \/>\n<code>mount -F hsfs {full_path_to}\/sol-11-1111-sruN-incr-repo.iso \/mnt<br \/>\npkg set-publisher -G '*' -g file:\/\/\/mnt\/repo solaris<br \/>\npkg update<br \/>\numount \/mnt<br \/>\n<\/code><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0438\u0441\u0442\u0435\u043c, \u0442\u043e \u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435<br \/>\n<!--more--><br \/>\n<code>zfs create -o mountpoint=\/export\/repo ips c2d2<br \/>\nzfs create ips\/sol11<br \/>\nmount -F hsfs -o ro \/tmp\/sol-11-1111-repo-full.iso \/mnt<\/code><\/p>\n<p>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0442\u0430\u043a<br \/>\n<code>pkgrepo create \/export\/repo\/sol11<br \/>\npkgrecv -s \/mnt\/repo -d \/export\/repo\/sol11 '*'<\/code><br \/>\n\u0438\u043b\u0438 \u0442\u0430\u043a<br \/>\n<code>rsync -aPq \/mnt\/repo \/export\/repo\/sol11<\/code><\/p>\n<p>\u041f\u0435\u0440\u0435\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0438\u043d\u0434\u0435\u043a\u0441 \u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0430\u0431\u043b\u0438\u0448\u0435\u0440\u0430<br \/>\n<code>pkgrepo rebuild -s \/export\/repo\/sol11\/repo<br \/>\npkg set-publisher -G '*' -M '*' -g file:\/\/\/export\/repo\/sol11\/repo solaris<\/code><br \/>\n\u0421\u043d\u044d\u043f\u0448\u043e\u0442 &#8212; \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0431\u043e\u043d\u0443\u0441 \u043e\u0442 zfs, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e, \u043c\u043e\u0436\u043d\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u043d\u0430 \u043b\u044e\u0431\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043e\u0431\u0440\u0430\u0437\u043e\u0432.<br \/>\n<code>zfs snapshot ips\/sol11@fcs<\/code><\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e  Support Repository Updates (SRU) &#8212;<br \/>\n<code>pkgrepo info -s \/export\/repo\/sol11\/repo<br \/>\npkg info entire<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043a\u0430\u0447\u043d\u0443\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435<br \/>\n<a href=\"https:\/\/support.oracle.com\/epmos\/faces\/ui\/km\/SearchDocDisplay.jspx?_afrLoop=459952950145279&#038;type=DOCUMENT&#038;id=1372094.1&#038;displayIndex=5&#038;_afrWindowMode=0&#038;_adf.ctrl-state=na3xc40i4_392\">Oracle Solaris 11 Support Repository Updates (SRU) Index [ID 1372094.1]<\/a><\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c iso-\u0448\u043a\u0443 \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435<br \/>\n<code>mount -F hsfs {full_path_to}\/sol-11-1111-sruN-incr-repo.iso \/mnt<br \/>\npkgrecv -s \/mnt\/repo -d \/export\/repo\/sol11\/repo '*'<br \/>\numount \/mnt<br \/>\npkgrepo refresh -s \/export\/repo\/sol11\/repo <\/code><br \/>\n\u0414\u0435\u043b\u0430\u0435\u043c \u0441\u043d\u044d\u043f\u0448\u043e\u0442<br \/>\n<code>zfs snapshot ips\/sol11@fcs-N<\/code><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441 pkg\/server &#8212; \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u043f\u0430\u043a\u0430\u0434\u0436\u0438 \u0447\u0435\u0440\u0435\u0437 http (\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e http:\/\/ip-\u0430\u0434\u0440\u0435\u0441)<br \/>\n<code>svccfg -s application\/pkg\/server \\<br \/>\nsetprop pkg\/inst_root=\/export\/repo\/sol11\/repo<br \/>\nsvccfg -s application\/pkg\/server setprop pkg\/readonly=true<br \/>\nsvcadm refresh application\/pkg\/server<br \/>\nsvcadm enable application\/pkg\/server<\/code><\/p>\n<p>\u041a\u0430\u043a \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043d\u0430 nfs-\u0448\u0430\u0440\u0443<br \/>\n<code># pkg publisher<br \/>\nPUBLISHER                             TYPE     STATUS   URI<br \/>\nsolaris                               origin   online   http:\/\/pkg.oracle.com\/solaris\/release\/<br \/>\n# pkg set-publisher -G '*' -M '*' -g  \/net\/10.0.64.115\/export\/repo\/sol11\/repo solaris<br \/>\n# pkg publisher<br \/>\nPUBLISHER                             TYPE     STATUS   URI<br \/>\nsolaris                               origin   online   file:\/\/\/net\/10.0.64.115\/export\/repo\/sol11\/repo\/<\/code><\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u041e\u0421:<br \/>\n<code>pkg update -nv<\/code><\/p>\n<p>\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u041e\u0421<br \/>\n<code>pkg update<\/code><\/p>\n<p>\u0421\u0441\u044b\u043b\u043a\u0438 \u0432 \u0442\u0435\u043c\u0443<\/p>\n<ul>\n<li><a href=\"https:\/\/blogs.oracle.com\/cmt\/en\/entry\/setting_up_a_local_ai\" target=\"_blank\">Setting up a local AI server &#8212; easy with Solaris 11<\/a><\/li>\n<li><a href=\"http:\/\/docs.oracle.com\/cd\/E23824_01\/html\/E21803\/toc.html\" target=\"_blank\">Copying and Creating Oracle Solaris 11 Package Repositories <\/a><\/li>\n<li><a href=\"https:\/\/support.oracle.com\/epmos\/faces\/ui\/km\/SearchDocDisplay.jspx?_afrLoop=459952950145279&#038;type=DOCUMENT&#038;id=1372094.1&#038;displayIndex=5&#038;_afrWindowMode=0&#038;_adf.ctrl-state=na3xc40i4_392\">Oracle Solaris 11 Support Repository Updates (SRU) Index [ID 1372094.1]<\/a><\/li>\n<li><a href=\"http:\/\/www.oracle.com\/technetwork\/server-storage\/solaris11\/documentation\/ips-one-liners-032011-337775.pdf\" target=\"_blank\">Oracle Solaris 11 Cheat Sheet for Image Packaging System<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 Solaris 11 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043d\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043a\u0430\u0434\u0436\u0430\u043c\u0438 IPS (Image Packaging System) . \u0421\u043c\u044b\u0441\u043b \u0442\u0430\u043a\u043e\u0439 &#8212; \u0435\u0441\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u043d\u0443 \u0442\u043e\u0447\u043d\u0435\u0435 \u043f\u0430\u043a\u0430\u0434\u0436\u0435\u0439, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u043d\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442). \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430. \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438\u0437 iso-\u0448\u043a\u0438 mount -F hsfs {full_path_to}\/sol-11-1111-sruN-incr-repo.iso \/mnt pkg set-publisher -G &#8216;*&#8217; -g file:\/\/\/mnt\/repo solaris [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[974,29,971,973,972,428],"class_list":["post-932","post","type-post","status-publish","format-standard","hentry","category-solaris","tag-ips","tag-pkg","tag-solaris-11","tag--solaris","tag-972","tag-428"],"_links":{"self":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=932"}],"version-history":[{"count":6,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/932\/revisions"}],"predecessor-version":[{"id":936,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/932\/revisions\/936"}],"wp:attachment":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}