Linux下通过wget下载Oracle补丁(如11.2.0.2.0)
来源:互联网 发布:sigmascan 替代软件 编辑:程序博客网 时间:2024/05/16 03:02
1. 语法:
wget -c --http-user=user --http-password=pwd --output-document=patch.zip "download_url" -o download.log &
各参数含义如下:
-c 表示断点续传
--http-user metalink帐号
--http-password metalink密码
--output-document 下载的文件名
"download_url" 下载地址(右击"下载"按钮后复制的链接地址)
-o 输出日志文件名
2. 举例(下载Oracle 11.2.0.2.0 for linux x86_64):
先建立下载目录, 并设置metalink用户名密码:
$ mkdir -p /u01/software/11g
$ cd /u01/software/11g
$USERNAME=abc@Oracle.com
$PASSWORD=jbgsn
然后开始下载此七个文件(注意下载链接中的matalink用户名已经通过变量$USERNAME替换掉了):
$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_1of7.zip \
"https://updates.Oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_1of7.zip?file_id=34840697&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_1of7.zip" \
-o download1.log &
$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_2of7.zip \
"https://updates.Oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_2of7.zip?file_id=34840698&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_2of7.zip" \
-o download2.log &
$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_3of7.zip \
"https://updates.Oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_3of7.zip?file_id=34840699&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_3of7.zip" \
-o download3.log &
$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_4of7.zip \
"https://updates.Oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_4of7.zip?file_id=34840703&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_4of7.zip" \
-o download4.log &
$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_5of7.zip \
"https://updates.Oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_5of7.zip?file_id=34840707&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_5of7.zip" \
-o download5.log &
$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_6of7.zip \
"https://updates.Oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_6of7.zip?file_id=34840708&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_6of7.zip" \
-o download6.log &
$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_7of7.zip \
"https://updates.Oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_7of7.zip?file_id=34840712&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_7of7.zip" \
-o download7.log &
可以查过查看各downloadX.log日志了解下载进度和下载速度.
--End--
wget -c --http-user=user --http-password=pwd --output-document=patch.zip "download_url" -o download.log &
各参数含义如下:
-c 表示断点续传
--http-user metalink帐号
--http-password metalink密码
--output-document 下载的文件名
"download_url" 下载地址(右击"下载"按钮后复制的链接地址)
-o 输出日志文件名
2. 举例(下载Oracle 11.2.0.2.0 for linux x86_64):
先建立下载目录, 并设置metalink用户名密码:
$ mkdir -p /u01/software/11g
$ cd /u01/software/11g
$USERNAME=abc@Oracle.com
$PASSWORD=jbgsn
然后开始下载此七个文件(注意下载链接中的matalink用户名已经通过变量$USERNAME替换掉了):
$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_1of7.zip \
"https://updates.Oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_1of7.zip?file_id=34840697&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_1of7.zip" \
-o download1.log &
$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_2of7.zip \
"https://updates.Oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_2of7.zip?file_id=34840698&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_2of7.zip" \
-o download2.log &
$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_3of7.zip \
"https://updates.Oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_3of7.zip?file_id=34840699&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_3of7.zip" \
-o download3.log &
$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_4of7.zip \
"https://updates.Oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_4of7.zip?file_id=34840703&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_4of7.zip" \
-o download4.log &
$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_5of7.zip \
"https://updates.Oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_5of7.zip?file_id=34840707&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_5of7.zip" \
-o download5.log &
$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_6of7.zip \
"https://updates.Oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_6of7.zip?file_id=34840708&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_6of7.zip" \
-o download6.log &
$ wget -c --http-user=$USERNAME --http-password=$PASSWORD \
--output-document=p10098816_112020_Linux-x86-64_7of7.zip \
"https://updates.Oracle.com/Orion/Download/process_form/p10098816_112020_Linux-x86-64_7of7.zip?file_id=34840712&aru=13149219&userid=o-$USERNAME&email=$USERNAME&patch_password=&patch_file=p10098816_112020_Linux-x86-64_7of7.zip" \
-o download7.log &
可以查过查看各downloadX.log日志了解下载进度和下载速度.
--End--
0 0
- Linux下通过wget下载Oracle补丁(如11.2.0.2.0)
- Linux下通过wget下载Oracle补丁(如11.2.0.2.0)
- Linux下用wget下载Oracle软件
- Linux下无法通过wget从Oracle官网下载JDK的解决办法
- windows下通过wget下载oracle安装介质
- 通过wget从oracle下载jdk 8
- Linux 使用 wget 下载 Oracle 软件说明
- linux上使用wget下载oracle jdk
- linux 下使用wget 下载文件夹
- Linux下使用wget下载jdk
- linux 下 文件下载 wget命令
- Linux下利用wget下载JDK
- Linux下使用wget下载jdk
- linux下wget下载整个网站
- linux下网络资源下载的命令wget
- WGET 通过代理下载
- 用wget多线程从ibm下载补丁
- wget下载oracle JDK
- 手机端APP防盗链配置问题
- springMVC学习笔记---文件的上传和下载
- BLToolkit 简介
- Android应用如何监听自己是否被卸载及卸载反馈功能的实现
- Windows Socket select 通信实例
- Linux下通过wget下载Oracle补丁(如11.2.0.2.0)
- 【Java关键字-Interface】为什么Interface中的变量只能是 public static final
- 使用spring MVC和jdkAnnotation实现权限拦截
- DIV样式
- 当ListView有Header时,onItemClick里的position不正确
- z-index注意点
- 利用AJAX生成自动添加tr的table,并且为添加的tr附加上方法
- Java学习之String类
- 《HackPwn:TCL智能洗衣机破解细节分析》读后感