{"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 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 <\/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 Inside the wget script the actual wget will look something like this:<\/p>\n <\/p>\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 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 <\/p>\n\n
# grep ^SSO_P wgetsru19.6.sh\r\nSSO_PASSWORD=<\/pre>\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
\n
Installing a package in Solaris 11<\/strong><\/h3>\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
# 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