{"id":600,"date":"2014-05-22T09:52:54","date_gmt":"2014-05-22T16:52:54","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=600"},"modified":"2014-05-22T14:57:33","modified_gmt":"2014-05-22T21:57:33","slug":"solaris-11-1-using-wget-for-oracle-software-downloads","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/solaris-11-1-using-wget-for-oracle-software-downloads\/","title":{"rendered":"Solaris 11.1 Using Wget for Oracle Software Downloads"},"content":{"rendered":"

Following is my notes on several Solaris 11 procedures.\u00a0 I just bunched it together but you may just need one of them and most unlikely all of them at the same time.<\/p>\n

** Of course you need to comply with Oracle licensing when downloading software and need an OTN account.<\/span><\/em><\/p>\n

Index<\/span><\/strong><\/p>\n

    \n
  1. Using wget to download a support patch from Oracle support site.<\/li>\n
  2. Installing a package in Solaris 11 but no Solaris 11 repo access and incremental repo shows dependency failures.\u00a0 Meaning we need a full repo also to meet dependencies.<\/li>\n
  3. Downloading with wget from Oracle Edelivery using cookies.<\/li>\n<\/ol>\n

    1. Downloading from Oracle support using wget. <\/strong><\/p>\n

    (<\/strong>In this example I grabbed Solaris 11.1 SRU 19.6)<\/p>\n

    Patch 18746419: ORACLE SOLARIS 11.1.19.6.0 REPO ISO IMAGE (SPARC\/X86 (64-BIT))<\/strong><\/p>\n

    \"oracle_wget_option\"<\/p>\n

    Download the \u201cWGET Options<\/strong>\u201d file at the bottom.\u00a0 Set your password in the script and run the script.<\/p>\n

    # grep ^SSO_P wgetsru19.6.sh\r\nSSO_PASSWORD=<\/pre>\n

    Inside the wget script the actual wget will look something like this:<\/p>\n

    $WGET --user-agent=\"Mozilla\/5.0\" --load-cookies=$COOKIE_FILE --save-cookies=$COOKIE_FILE --keep-session-cookies \"https:\/\/updates.oracle.com\/Orion\/Services\/download\/p18746419_1100_SOLARIS64.zip?aru=17658104&patch_file=p18746419_1100_SOLARIS64.zip\" -O $OUTPUT_DIR\/p18746419_1100_SOLARIS64.zip<\/pre>\n

     <\/p>\n

      \n
    1. \n

      Installing a package in Solaris 11<\/strong><\/h3>\n

      Keeping in mind I have no Solaris 11 online repo access and using only the incremental repo shows dependency failures.\u00a0 Meaning we need a full repo (either online or iso) to meet dependencies.<\/li>\n<\/ol>\n

      I was trying to install VNC server and in my case I only had the SRU 19.6 incremental CD repo to work with.\u00a0 So I had to go get the full repo also to satisfy dependencies.<\/p>\n

      # lofiadm -a \/software\/solaris\/sol-11_1_18_5_0-incr-repo.iso\r\n\/dev\/lofi\/1\r\n# mount -o ro -F hsfs \/dev\/lofi\/1 \/mnt\r\n# pkg set-publisher -g file:\/\/\/mnt\/repo solaris\r\n# pkg publisher\r\nPUBLISHER      TYPE      STATUS P    LOCATION\r\nsolaris        origin    online F    file:\/\/\/mnt\/repo\/\r\n# pkg install pkg:\/x11\/server\/xvnc@1.1.0-0.175.1.17.0.3.1348\r\nCreating Plan (Solver setup): \/\r\npkg install: No matching version of x11\/server\/xvnc can be installed:\r\nReject: pkg:\/\/solaris\/x11\/server\/xvnc@1.1.0,5.11-0.175.1.17.0.3.1348:20140221T230347Z\r\nReason: A version for 'require' dependency on pkg:\/x11\/keyboard\/xkbcomp cannot be found<\/pre>\n

      Normally you can at this point just add the Oracle online server repo from pkg.oracle.com.\u00a0 But in my case this specific host is firewalled off and no http outbound access allowed.\u00a0 If you did have http outbound you could end up with below and it should work:<\/p>\n

      # pkg publisher\r\nPUBLISHER\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TYPE\u00a0\u00a0\u00a0\u00a0 STATUS P LOCATION\r\nsolaris\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 origin\u00a0\u00a0 online F file:\/\/\/mnt\/repo\/\r\nsolaris\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 origin\u00a0\u00a0 online F http:\/\/pkg.oracle.com\/solaris\/release\/<\/pre>\n

       <\/p>\n

        \n
      1. \n

        A) Downloading with wget from Oracle Edelivery using cookies.<\/strong><\/h3>\n<\/li>\n<\/ol>\n

        \u00a0<\/strong>I am proceeding to download the following full repo.\u00a0 You can also download this in a browser but I did not want to download to my desktop and turn around and upload through a VPN connection so I wanted wget to download straight to the server.<\/p>\n

        ** More on cookies and edelivery here: http:\/\/www.pythian.com\/blog\/how-to-download-oracle-software-using-wget-or-curl\/<\/a><\/p>\n

        Files are here: http:\/\/www.oracle.com\/technetwork\/server-storage\/solaris11\/downloads\/index.html<\/p>\n

        \"solaris11_full_repo\"<\/p>\n

        # wget --load-cookies=.\/cookies.txt --no-check-certificate \"http:\/\/download.oracle.com\/otn\/solaris\/11_1\/sol-11_1-repo-full.iso-a\"\r\n\r\n# wget --load-cookies=.\/cookies.txt --no-check-certificate <a href=\"http:\/\/download.oracle.com\/otn\/solaris\/11_1\/sol-11_1-repo-full.iso-b\">http:\/\/download.oracle.com\/otn\/solaris\/11_1\/sol-11_1-repo-full.iso-b<\/a>\r\n\r\n# cat sol-11_1-repo-full.iso-a sol-11_1-repo-full.iso-b &gt; sol-11_1-repo-full.iso<\/pre>\n

         <\/p>\n

        3. B) Now let\u2019s install the software<\/strong><\/h3>\n
        # lofiadm -a \/software\/solaris\/sol-11_1-repo-full.iso\r\n\/dev\/lofi\/2\r\n# mount -o ro -F hsfs \/dev\/lofi\/2 \/sol11\r\n# ls \/sol11\/\r\nCOPYRIGHT\u00a0 NOTICES\u00a0\u00a0\u00a0 README\u00a0\u00a0\u00a0\u00a0 repo\r\n# pkg set-publisher -g file:\/\/\/sol11\/repo solaris\r\n# pkg publisher\r\nPUBLISHER\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TYPE\u00a0\u00a0\u00a0\u00a0 STATUS P LOCATION\r\nsolaris\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 origin\u00a0\u00a0 online F file:\/\/\/mnt\/repo\/\r\nsolaris\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 origin\u00a0\u00a0 online F file:\/\/\/sol11\/repo\/\r\n\r\n# pkg install pkg:\/x11\/server\/xvnc@1.1.0-0.175.1.17.0.3.1348\r\nPackages to install: 35\r\nCreate boot environment: No\r\nCreate backup boot environment: No\r\nServices to change:\u00a0 5\r\n\r\nDOWNLOAD\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PKGS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 FILES\u00a0\u00a0\u00a0 XFER (MB)\u00a0\u00a0 SPEED\r\nCompleted\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 35\/35\u00a0\u00a0\u00a0\u00a0 2305\/2305\u00a0\u00a0\u00a0 26.2\/26.2\u00a0\u00a0\u00a0 0B\/s\r\n\r\nPHASE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ITEMS\r\nInstalling new actions\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3341\/3341\r\nUpdating package state database\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Done\r\nUpdating image state\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Done\r\nCreating fast lookup database\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Done\r\n\r\n# pkg unset-publisher solaris\r\n# pkg publisher\r\nPUBLISHER\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TYPE\u00a0\u00a0\u00a0\u00a0 STATUS P LOCATION\r\n# umount \/sol11\/\r\n# rmdir \/sol11\/\r\n# umount \/mnt\r\n# lofiadm -d \/dev\/lofi\/2\r\n# lofiadm -d \/dev\/lofi\/1<\/pre>\n

         <\/p>\n","protected":false},"excerpt":{"rendered":"

        Following is my notes on several Solaris 11 procedures.\u00a0 I just bunched it together but you may just need one<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45,14,46],"tags":[],"class_list":["post-600","post","type-post","status-publish","format-standard","hentry","category-ips","category-solaris","category-wget"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=600"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/600\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}