Download Oracle files on Linux via wget
Contents
___________________________________________________________________________________________________
1. Check whether wget utility is already installed or not in your Linux box
2. WGET Help commands
3. Copy the link Address
4. Run WGET
____________________________________________________________________________________________________
1. Check whether wget utility is already installed or not in your Linux box
[oracle@rac1 ~]$ rpm -qa wget
wget-1.11.4-2.el5_4.1
[oracle@rac1 ~]$
Please install it using YUM command in case wget is not installed already or you can also download binary package at http://ftp.gnu.org/gnu/wget/
[oracle@rac1 ~]$ su - Password: [root@rac1 ~]# yum -y install wget Loaded plugins: rhnplugin, security This system is not registered with ULN. ULN support will be disabled. Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package wget.x86_64 0:1.11.4-3.el5_8.2 set to be updated --> Finished Dependency Resolution Dependencies Resolved ============================================================== Package Arch Version Repository Size ============================================================== Updating: wget x86_64 1.11.4-3.el5_8.2 el5_latest 583 k Transaction Summary ============================================================== Install 0 Package(s) Upgrade 1 Package(s) Total download size: 583 k Downloading Packages: wget-1.11.4-3.el5_8.2.x86_64.rpm | 583 kB 00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Updating : wget 1/2 Cleanup : wget 2/2 Updated: wget.x86_64 0:1.11.4-3.el5_8.2 Complete! [root@rac1 ~]# [root@rac1 ~]# rpm -qa wget wget-1.11.4-3.el5_8.2 [root@rac1 ~]#
[root@rac1 ~]# wget --help
GNU Wget 1.11.4 Red Hat modified, a non-interactive network retriever.
Usage: wget [OPTION]... [URL]...
Mandatory arguments to long options are mandatory for short options too.
Startup:
-V, --version display the version of Wget and exit.
-h, --help print this help.
-b, --background go to background after startup.
-e, --execute=COMMAND execute a `.wgetrc'-style command.
Logging and input file:
-o, --output-file=FILE log messages to FILE.
-a, --append-output=FILE append messages to FILE.
-d, --debug print lots of debugging information.
-q, --quiet quiet (no output).
-v, --verbose be verbose (this is the default).
-nv, --no-verbose turn off verboseness, without being quiet.
-i, --input-file=FILE download URLs found in FILE.
-F, --force-html treat input file as HTML.
-B, --base=URL prepends URL to relative links in -F -i file.
Download:
-t, --tries=NUMBER set number of retries to NUMBER (0 unlimits).
--retry-connrefused retry even if connection is refused.
-O, --output-document=FILE write documents to FILE.
-nc, --no-clobber skip downloads that would download to
existing files.
-c, --continue resume getting a partially-downloaded file.
--progress=TYPE select progress gauge type.
-N, --timestamping don't re-retrieve files unless newer than
local.
-S, --server-response print server response.
--spider don't download anything.
-T, --timeout=SECONDS set all timeout values to SECONDS.
--dns-timeout=SECS set the DNS lookup timeout to SECS.
--connect-timeout=SECS set the connect timeout to SECS.
--read-timeout=SECS set the read timeout to SECS.
-w, --wait=SECONDS wait SECONDS between retrievals.
--waitretry=SECONDS wait 1..SECONDS between retries of a retrieval.
--random-wait wait from 0...2*WAIT secs between retrievals.
--no-proxy explicitly turn off proxy.
-Q, --quota=NUMBER set retrieval quota to NUMBER.
--bind-address=ADDRESS bind to ADDRESS (hostname or IP) on local host.
--limit-rate=RATE limit download rate to RATE.
--no-dns-cache disable caching DNS lookups.
--restrict-file-names=OS restrict chars in file names to ones OS allows.
--ignore-case ignore case when matching files/directories.
-4, --inet4-only connect only to IPv4 addresses.
-6, --inet6-only connect only to IPv6 addresses.
--prefer-family=FAMILY connect first to addresses of specified family,
one of IPv6, IPv4, or none.
--user=USER set both ftp and http user to USER.
--password=PASS set both ftp and http password to PASS.
Directories:
-nd, --no-directories don't create directories.
-x, --force-directories force creation of directories.
-nH, --no-host-directories don't create host directories.
--protocol-directories use protocol name in directories.
-P, --directory-prefix=PREFIX save files to PREFIX/...
--cut-dirs=NUMBER ignore NUMBER remote directory components.
HTTP options:
--http-user=USER set http user to USER.
--http-password=PASS set http password to PASS.
--no-cache disallow server-cached data.
-E, --html-extension save HTML documents with `.html' extension.
--ignore-length ignore `Content-Length' header field.
--header=STRING insert STRING among the headers.
--max-redirect maximum redirections allowed per page.
--proxy-user=USER set USER as proxy username.
--proxy-password=PASS set PASS as proxy password.
--referer=URL include `Referer: URL' header in HTTP request.
--save-headers save the HTTP headers to file.
-U, --user-agent=AGENT identify as AGENT instead of Wget/VERSION.
--no-http-keep-alive disable HTTP keep-alive (persistent connections).
--no-cookies don't use cookies.
--load-cookies FILE load cookies from FILE before session.
--save-cookies FILE save cookies to FILE after session.
--keep-session-cookies load and save session (non-permanent) cookies.
--post-data=STRING use the POST method; send STRING as the data.
--post-file=FILE use the POST method; send contents of FILE.
--content-disposition honor the Content-Disposition header when
choosing local file names (EXPERIMENTAL).
--auth-no-challenge Send Basic HTTP authentication information
without first waiting for the server's
challenge.
HTTPS (SSL/TLS) options:
--secure-protocol=PR choose secure protocol, one of auto, SSLv2,
SSLv3, and TLSv1.
--no-check-certificate don't validate the server's certificate.
--certificate=FILE client certificate file.
--certificate-type=TYPE client certificate type, PEM or DER.
--private-key=FILE private key file.
--private-key-type=TYPE private key type, PEM or DER.
--ca-certificate=FILE file with the bundle of CA's.
--ca-directory=DIR directory where hash list of CA's is stored.
--random-file=FILE file with random data for seeding the SSL PRNG.
--egd-file=FILE file naming the EGD socket with random data.
FTP options:
--ftp-user=USER set ftp user to USER.
--ftp-password=PASS set ftp password to PASS.
--no-remove-listing don't remove `.listing' files.
--no-glob turn off FTP file name globbing.
--no-passive-ftp disable the "passive" transfer mode.
--retr-symlinks when recursing, get linked-to files (not dir).
--preserve-permissions preserve remote file permissions.
Recursive download:
-r, --recursive specify recursive download.
-l, --level=NUMBER maximum recursion depth (inf or 0 for infinite).
--delete-after delete files locally after downloading them.
-k, --convert-links make links in downloaded HTML point to local files.
-K, --backup-converted before converting file X, back up as X.orig.
-m, --mirror shortcut for -N -r -l inf --no-remove-listing.
-p, --page-requisites get all images, etc. needed to display HTML page.
--strict-comments turn on strict (SGML) handling of HTML comments.
Recursive accept/reject:
-A, --accept=LIST comma-separated list of accepted extensions.
-R, --reject=LIST comma-separated list of rejected extensions.
-D, --domains=LIST comma-separated list of accepted domains.
--exclude-domains=LIST comma-separated list of rejected domains.
--follow-ftp follow FTP links from HTML documents.
--follow-tags=LIST comma-separated list of followed HTML tags.
--ignore-tags=LIST comma-separated list of ignored HTML tags.
-H, --span-hosts go to foreign hosts when recursive.
-L, --relative follow relative links only.
-I, --include-directories=LIST list of allowed directories.
-X, --exclude-directories=LIST list of excluded directories.
-np, --no-parent don't ascend to the parent directory.
Mail bug reports and suggestions to <bug-wget@gnu.org>.
[root@rac1 ~]#
[oracle@rac1 ~]$ pwd /home/oracle [oracle@rac1 ~]$ -- Try to execute without this clause "--no-check-certificate", if any error related to certification then only use this clause [oracle@rac1 ~]$ wget --http-user=rajasekhar.amudala@xxxxxx.com --http-password=ENTERYOURPASSWORD "https://updates.oracle.com/Orion/Download/process_form/p6880880_122010_Linux-x86-64.zip?file_id=101065970&aru=22323437&userid=o-rajasekhar.amudala@xxxxxx.com&email=rajasekhar.amudala@xxxxxx.com&patch_password=&patch_file=p6880880_122010_Linux-x86-64.zip" -O p6880880_122010_Linux-x86-64.zip --no-check-certificate --2018-08-29 04:50:59-- https://updates.oracle.com/Orion/Download/process_form/p6880880_122010_Linux-x86-64.zip?file_id=101065970&aru=22323437&userid=o-rajasekhar.amudala@xxxxxx.com&email=rajasekhar.amudala@xxxxxx.com&patch_password=&patch_file=p6880880_122010_Linux-x86-64.zip Resolving updates.oracle.com... 141.146.44.51 Connecting to updates.oracle.com|141.146.44.51|:443... connected. WARNING: cannot verify updates.oracle.com's certificate, issued by `/C=US/O=DigiCert Inc/CN=DigiCert SHA2 Secure Server CA': Unable to locally verify the issuer's authority. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://login.oracle.com/pls/orasso/orasso.wwsso_app_admin.ls_login?site2pstoretoken=v1.2~160FF995E106EA9714~B8FAACA28CC22F2A9DFB586755682AE43F1EE4E88E7FA27AF4F3315381732B35C74FA803B29A0A1667310E48C06879A940877E977992C5931134CC4BCAA7A223DCDF0702CD406D301D28B940669C57C20D08E0A78560CBBE5701A537B08BD06FBCAE8FC2EA9D2071072552D6D63C067DFA55AE1043B5CE93717A88D96CC91D720E8A79F2B21B7D3DFB0DB09B7A6B4038F63E5F428787FDA1409D5FF0AC6B38C6BE957B3E6CD2659A225E269B57C03FBBDEEEC64E8449313752E331B1AB3D0BC487AF51027FCFE92DD8AE61AA1109312451FDA66A77E0890C44F57FE30DEC5EBAE175B126A63DD9CD0958D17A1582385FA03E23220BB68FFED3AA02AEE5B6352DD242206CAF5603491596C8139A45C66B048FB18E18DD5EC9B1E42807FA48778AFB3481CEAB44E6B6335AD6BCA2638C88C6E4288036227BC2F308ADB452766200A05870EA7A5A3E0972A0A4E8F4D21C4CAF4F988BAE5FA11C0544AC14AE0E9F1D85D203DD8D308CF54EBDBD526188E94AFD35E8F7B68225EF3027CDF44A236F83C35169C52C80E781E88F7E419539E8F8 [following] --2018-08-29 04:51:00-- https://login.oracle.com/pls/orasso/orasso.wwsso_app_admin.ls_login?site2pstoretoken=v1.2~160FF995E106EA9714~B8FAACA28CC22F2A9DFB586755682AE43F1EE4E88E7FA27AF4F3315381732B35C74FA803B29A0A1667310E48C06879A940877E977992C5931134CC4BCAA7A223DCDF0702CD406D301D28B940669C57C20D08E0A78560CBBE5701A537B08BD06FBCAE8FC2EA9D2071072552D6D63C067DFA55AE1043B5CE93717A88D96CC91D720E8A79F2B21B7D3DFB0DB09B7A6B4038F63E5F428787FDA1409D5FF0AC6B38C6BE957B3E6CD2659A225E269B57C03FBBDEEEC64E8449313752E331B1AB3D0BC487AF51027FCFE92DD8AE61AA1109312451FDA66A77E0890C44F57FE30DEC5EBAE175B126A63DD9CD0958D17A1582385FA03E23220BB68FFED3AA02AEE5B6352DD242206CAF5603491596C8139A45C66B048FB18E18DD5EC9B1E42807FA48778AFB3481CEAB44E6B6335AD6BCA2638C88C6E4288036227BC2F308ADB452766200A05870EA7A5A3E0972A0A4E8F4D21C4CAF4F988BAE5FA11C0544AC14AE0E9F1D85D203DD8D308CF54EBDBD526188E94AFD35E8F7B68225EF3027CDF44A236F83C35169C52C80E781E88F7E419539E8F8 Resolving login.oracle.com... 156.151.58.18 Connecting to login.oracle.com|156.151.58.18|:443... connected. HTTP request sent, awaiting response... 401 Authorization Required Reusing existing connection to login.oracle.com:443. HTTP request sent, awaiting response... 302 Moved Temporarily Location: https://updates.oracle.com:443/osso_login_success?urlc=v1.2%7E6AF5E6C006646F6812621BA63373CCC9237AA9D174B4BB484D1B383D3397372A9753974DA04A346EC5AAD729F2FD94D74C442205C7D2FBFB90FE15D00ED6ADCE49BBE862F952A8C9D28305B30C9ED51B4B4C9F3D5CC3884E4076BDD2AEF23965CE9A11B40711662A1C366193824B2D1FA7CDEA7B9C517923890C17CDD217FDA33A35B2B45E6354564AB64A25F3950DC43985096D847AC1B6BBFA9F41A068DEFC3B611296C6E0C764D23317CC2B6B0B0FAF38A30A9DC0C1811476669AF04E32161B30E3CA8B44B9ACA607FA76610028B18ACF908D344FCE85827D45CE2055F9DBEA1D88A46BA52F2876570830242122ADE2D60528E22FCD9D5AE5D6DEA4F4CD13CFA973AB79A5A7CEEFBBF61DEFB63EDB5C311F0ED7A526D24329231A0E3E5D13C8CFA0302DCB6D5A4C3AE7B47DC4E38CD15E50194E701D329A8D8FBC55AAF225FECCF0A657D79E758E2A34562D9168621C9F4F9AEEAFB24664BE1780E4DEC93BCE0FEE407536A75A10CD6D0139D853C8CBAD30B4269430B2B2652E40ED849F5D94C2BFF7E0290324B658937A4EF423E0C76DB80F843969A5F316310FF5FE925265CD496B59520BCBC644E655DFE117A7445FEA76DF5D7B3E0907D2B46D8C22FFA637314AB58B814034575CF41F1AC8B5179C106C38840CDEA1F3C16B8C7D5E293C856868CD97CE0F4D4A6E0BFF589CC6E3048355E76CC2990F6CBCBD837670D0518E53FC117BC7A4F31FE6E001EA2E1F4ABA095D0DF945DFFDAE2F266A6E61C9 [following] --2018-08-29 04:51:03-- https://updates.oracle.com/osso_login_success?urlc=v1.2%7E6AF5E6C006646F6812621BA63373CCC9237AA9D174B4BB484D1B383D3397372A9753974DA04A346EC5AAD729F2FD94D74C442205C7D2FBFB90FE15D00ED6ADCE49BBE862F952A8C9D28305B30C9ED51B4B4C9F3D5CC3884E4076BDD2AEF23965CE9A11B40711662A1C366193824B2D1FA7CDEA7B9C517923890C17CDD217FDA33A35B2B45E6354564AB64A25F3950DC43985096D847AC1B6BBFA9F41A068DEFC3B611296C6E0C764D23317CC2B6B0B0FAF38A30A9DC0C1811476669AF04E32161B30E3CA8B44B9ACA607FA76610028B18ACF908D344FCE85827D45CE2055F9DBEA1D88A46BA52F2876570830242122ADE2D60528E22FCD9D5AE5D6DEA4F4CD13CFA973AB79A5A7CEEFBBF61DEFB63EDB5C311F0ED7A526D24329231A0E3E5D13C8CFA0302DCB6D5A4C3AE7B47DC4E38CD15E50194E701D329A8D8FBC55AAF225FECCF0A657D79E758E2A34562D9168621C9F4F9AEEAFB24664BE1780E4DEC93BCE0FEE407536A75A10CD6D0139D853C8CBAD30B4269430B2B2652E40ED849F5D94C2BFF7E0290324B658937A4EF423E0C76DB80F843969A5F316310FF5FE925265CD496B59520BCBC644E655DFE117A7445FEA76DF5D7B3E0907D2B46D8C22FFA637314AB58B814034575CF41F1AC8B5179C106C38840CDEA1F3C16B8C7D5E293C856868CD97CE0F4D4A6E0BFF589CC6E3048355E76CC2990F6CBCBD837670D0518E53FC117BC7A4F31FE6E001EA2E1F4ABA095D0DF945DFFDAE2F266A6E61C9 Connecting to updates.oracle.com|141.146.44.51|:443... connected. WARNING: cannot verify updates.oracle.com's certificate, issued by `/C=US/O=DigiCert Inc/CN=DigiCert SHA2 Secure Server CA': Unable to locally verify the issuer's authority. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://updates.oracle.com/Orion/Download/process_form/p6880880_122010_Linux-x86-64.zip?file_id=101065970&aru=22323437&userid=o-rajasekhar.amudala@xxxxxx.com&email=rajasekhar.amudala@xxxxxx.com&patch_password=&patch_file=p6880880_122010_Linux-x86-64.zip [following] --2018-08-29 04:51:04-- https://updates.oracle.com/Orion/Download/process_form/p6880880_122010_Linux-x86-64.zip?file_id=101065970&aru=22323437&userid=o-rajasekhar.amudala@xxxxxx.com&email=rajasekhar.amudala@xxxxxx.com&patch_password=&patch_file=p6880880_122010_Linux-x86-64.zip Connecting to updates.oracle.com|141.146.44.51|:443... connected. WARNING: cannot verify updates.oracle.com's certificate, issued by `/C=US/O=DigiCert Inc/CN=DigiCert SHA2 Secure Server CA': Unable to locally verify the issuer's authority. HTTP request sent, awaiting response... 302 Found Location: https://aru-akam.oracle.com/adcarurepos/vol/patch37/PLATFORM/Linux-x86-64/R600000000063735/p6880880_122010_Linux-x86-64.zip?FilePath=/adcarurepos/vol/patch37/PLATFORM/Linux-x86-64/R600000000063735/p6880880_122010_Linux-x86-64.zip&File=p6880880_122010_Linux-x86-64.zip¶ms=UlZIempoMFQvVHEydFByMWxNZ21idzphcnU9MjIzMjM0MzcmZW1haWw9cmFqYXNla2hhci5hbXVkYWxhQHNjLmNvbSZmaWxlX2lkPTEwMTA2NTk3MCZwYXRjaF9maWxlPXA2ODgwODgwXzEyMjAxMF9MaW51eC14ODYtNjQuemlwJnVzZXJpZD1vLXJhamFzZWtoYXIuYW11ZGFsYUBzYy5jb20mc2l6ZT05OTE4MzUwNSZjb250ZXh0PUFAMTArSEBhYXJ1dm10cDA0Lm9yYWNsZS5jb20rUEAmZG93bmxvYWRfaWQ9Mzg2MjYyMjAx&AuthParam=1535498594_9310c09f1a34579164196ba1802d3d28 [following] --2018-08-29 04:51:06-- https://aru-akam.oracle.com/adcarurepos/vol/patch37/PLATFORM/Linux-x86-64/R600000000063735/p6880880_122010_Linux-x86-64.zip?FilePath=/adcarurepos/vol/patch37/PLATFORM/Linux-x86-64/R600000000063735/p6880880_122010_Linux-x86-64.zip&File=p6880880_122010_Linux-x86-64.zip¶ms=UlZIempoMFQvVHEydFByMWxNZ21idzphcnU9MjIzMjM0MzcmZW1haWw9cmFqYXNla2hhci5hbXVkYWxhQHNjLmNvbSZmaWxlX2lkPTEwMTA2NTk3MCZwYXRjaF9maWxlPXA2ODgwODgwXzEyMjAxMF9MaW51eC14ODYtNjQuemlwJnVzZXJpZD1vLXJhamFzZWtoYXIuYW11ZGFsYUBzYy5jb20mc2l6ZT05OTE4MzUwNSZjb250ZXh0PUFAMTArSEBhYXJ1dm10cDA0Lm9yYWNsZS5jb20rUEAmZG93bmxvYWRfaWQ9Mzg2MjYyMjAx&AuthParam=1535498594_9310c09f1a34579164196ba1802d3d28 Resolving aru-akam.oracle.com... 23.35.84.105 Connecting to aru-akam.oracle.com|23.35.84.105|:443... connected. WARNING: cannot verify aru-akam.oracle.com's certificate, issued by `/C=US/O=DigiCert Inc/CN=DigiCert SHA2 Secure Server CA': Unable to locally verify the issuer's authority. WARNING: certificate common name `download.oracle.com' doesn't match requested host name `aru-akam.oracle.com'. HTTP request sent, awaiting response... 200 OK Length: 99183505 (95M) [application/zip] Saving to: `p6880880_122010_Linux-x86-64.zip' 100%[===================================>] 99,183,505 5.65M/s in 19s 2018-08-29 04:51:24 (5.05 MB/s) - `p6880880_122010_Linux-x86-64.zip' saved [99183505/99183505] [oracle@rac1 ~]$ pwd /home/oracle [oracle@rac1 ~]$ ls -lrth p6880880_122010_Linux-x86-64.zip -rw-r--r-- 1 oracle oinstall 95M Jul 12 09:17 p6880880_122010_Linux-x86-64.zip [oracle@rac1 ~]$
Caution: Your use of any information or materials on this website is entirely at your own risk. It is provided for educational purposes only. It has been tested internally, however, we do not guarantee that it will work for you. Ensure that you run it in your test environment before using.
Thank you,
Rajasekhar Amudala
Email: br8dba@gmail.com