{"id":4683,"date":"2015-02-02T17:28:28","date_gmt":"2015-02-02T15:28:28","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=4683"},"modified":"2022-08-12T13:48:58","modified_gmt":"2022-08-12T10:48:58","slug":"faq-%d0%bf%d0%be-pkg-solaris","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=4683","title":{"rendered":"FAQ \u043f\u043e pkg (solaris)"},"content":{"rendered":"<p><span style=\"color: #ff6600;\"><em><strong>pkg CVE<\/strong><\/em><\/span><\/p>\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 <strong>SRU 11.2.5.X.X<\/strong> \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0431\u0430\u0437\u0435 <strong>CVE<\/strong>. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0435\u0441\u0442\u044c <a href=\"https:\/\/blogs.oracle.com\/darren\/entry\/cve_metadata_in_solaris_ips\" target=\"_blank\" rel=\"noopener\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u0422\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u043b\u0438 \u043d\u0443\u0436\u043d\u044b\u0439 \u0431\u0430\u0433:<\/p>\n<pre>$ pkg search -f ':set:com.oracle.service.bugid:7146824'\nINDEX\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ACTION VALUE\u00a0\u00a0 PACKAGE\ncom.oracle.service.bugid set\u00a0\u00a0\u00a0 7146824 pkg:\/library\/security\/openssl@1.0.0.7-0.175.0.5.0.3.0\n<\/pre>\n<p><!--more--><\/p>\n<p><em><span style=\"color: #ff6600;\">\u041a\u0430\u043a\u043e\u043c\u0443 \u043f\u0430\u043a\u0435\u0442\u0443 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u0444\u0430\u0439\u043b?<\/span><\/em><\/p>\n<p><code>$ pkg contents -o pkg.name,path -a path='path\/to\/file'<\/code><\/p>\n<p>\u041d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0439\u0442\u0435 \u043f\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0441\u043b\u0435\u0448 \u0432 \u043f\u0443\u0442\u044c \u0444\u0430\u0439\u043b\u0430. <strong>pkg<\/strong> \u0438\u0449\u0435\u0442 \u0432 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0443\u0442\u044f\u0445.<\/p>\n<p><em><span style=\"color: #ff6600;\">\u0412\u044b\u0432\u043e\u0434 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 (\u043e\u0442 \u043a\u0430\u043a\u0438\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0439)<\/span><\/em><\/p>\n<p><code>$ pkg contents -o fmri -H -r -t depend &lt;pkg\/uri\/&gt;<\/code><\/p>\n<p><em><span style=\"color: #ff6600;\">\u0412\u044b\u0432\u043e\u0434 setuid\/setgid \u0444\u0430\u0439\u043b\u043e\u0432<\/span><\/em><\/p>\n<p><code>$ pkg contents -a mode=4??? -a mode=2??? -t file -o pkg.name,path,mode<\/code><\/p>\n<p><em><span style=\"color: #ff6600;\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 (\u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 11.2):<\/span><\/em><\/p>\n<p>&#8211; \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440<\/p>\n<p><code># pkg install\u00a0solaris-minimal-server<\/code><\/p>\n<p>&#8211; \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435, \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u044b (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u044b)<\/p>\n<p><code># pkg exact-install nano ggrep<\/code><\/p>\n<p><span style=\"color: #ff6600;\"><em>\u041a\u0430\u043a\u0438\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u043f\u0430\u043a\u0435\u0442\u0430 PKG_NAME<\/em><\/span><\/p>\n<p><code># pkg search -l -o pkg.name 'depend::PKG_NAME'<\/code><\/p>\n<p><span style=\"color: #ff6600;\"><em>\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432<\/em><\/span><\/p>\n<p>\u041e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f <a href=\"http:\/\/docs.oracle.com\/cd\/E53394_01\/html\/E54739\/tspkginstall.html#scrolltoc\">11.3<\/a> \u0438 <a href=\"https:\/\/docs.oracle.com\/cd\/E36784_01\/html\/E36802\/tspkginstall.html\">11.2<\/a><\/p>\n<p><span style=\"color: #ff6600;\"><em>\u0417\u0430\u043f\u0440\u0435\u0442 \u0430\u043f\u0434\u0435\u0439\u0442\u0430 \u043d\u0430 \u043c\u0430\u0436\u043e\u0440\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438<\/em><\/span><\/p>\n<p><code># pkg install solaris-11.3<\/code><\/p>\n<p>\u0417\u0430\u043f\u0440\u0435\u0442\u0438\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u041e\u0421 \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e \u043c\u0430\u0436\u043e\u0440\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430 <strong>11.4<\/strong>, <strong>11.5<\/strong> \u0438 \u0442.\u0434, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 <strong>11.3<\/strong> (\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u043e\u0432\u044b\u0445 <strong>SRU<\/strong>) \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e.<\/p>\n<p>\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u043e, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441\u00a0<strong>11.3.14<\/strong>.<\/p>\n<p><span style=\"color: #ff6600;\"><em>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c publisher&#8217;e<\/em><\/span><\/p>\n<p><code><\/code><code>$ pkgrepo list -s http:\/\/ips.repo.com\/ '*pkg*'<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>pkg CVE \u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 SRU 11.2.5.X.X \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0431\u0430\u0437\u0435 CVE. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0435\u0441\u0442\u044c \u0437\u0434\u0435\u0441\u044c. \u0422\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u043b\u0438 \u043d\u0443\u0436\u043d\u044b\u0439 \u0431\u0430\u0433: $ pkg search -f &#8216;:set:com.oracle.service.bugid:7146824&#8217; INDEX\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ACTION VALUE\u00a0\u00a0 PACKAGE com.oracle.service.bugid set\u00a0\u00a0\u00a0 7146824 pkg:\/library\/security\/openssl@1.0.0.7-0.175.0.5.0.3.0<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-4683","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4683"}],"version-history":[{"count":7,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4683\/revisions"}],"predecessor-version":[{"id":5966,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/4683\/revisions\/5966"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}