升级软件
若要升级OmniShuffle,需要先获取安装包并进行完整性校验,之后按照升级步骤进行升级。
软件安装包完整性校验
从鲲鹏社区获取的软件安装包,下载软件安装包后需要校验软件安装包,确保与网站上的原始软件安装包一致。
校验方法:
升级步骤
- 把要升级的软件安装包放到$OCK_HOME的上一级目录。
- 进入一个用户有写权限的目录,推荐“$OCK_HOME/logs”。
cd $OCK_HOME/logs
- 获取升级帮助。
$OCK_HOME/ucache/23.0.0/linux-aarch64/bin/upgrade -h usage: upgrade [arguments] upgrade package. Example: ./upgrade -o [PACKAGE_NANE] Arguments: -o Followed by the name of the downloaded package to upgrade. -h or --help Give this help list. -v or --version Print version info.
- 启动升级。
$OCK_HOME/ucache/23.0.0/linux-aarch64/bin/upgrade -o BoostKit-omnishuffle_1.3.0.tar.gz
- 在调用upgrade二进制文件过程中,会先调用verification二进制验证软件安装包的签名。也可根据业务需要,单独调用verification二进制进行验证。方法如下。
- 解压软件安装包。
tar -zxvf /home/BoostKit-omnishuffle_1.3.0.tar.gz tar -zxvf BoostKit-omnishuffle_1.3.0.tar.gz
BoostKit-omnishuffle_1.3.0/ BoostKit-omnishuffle_1.3.0/omnishuffleCache_openeuler-aarch64.tar.gz BoostKit-omnishuffle_1.3.0/omnishuffleCache_openeuler-aarch64.tar.gz.cms BoostKit-omnishuffle_1.3.0/omnishuffleCache_openeuler-aarch64.tar.gz.txt BoostKit-omnishuffle_1.3.0/omnishufflePlugins_openeuler-aarch64.tar.gz BoostKit-omnishuffle_1.3.0/omnishufflePlugins_openeuler-aarch64.tar.gz.cms BoostKit-omnishuffle_1.3.0/omnishufflePlugins_openeuler-aarch64.tar.gz.txt BoostKit-omnishuffle_1.3.0/omnishuffleUtils_euleros-aarch64.tar.gz BoostKit-omnishuffle_1.3.0/omnishuffleUtils_euleros-aarch64.tar.gz.cms BoostKit-omnishuffle_1.3.0/omnishuffleUtils_euleros-aarch64.tar.gz.txt
- 在用户有写权限的目录下,调用二进制验证签名。
${OCK_HOME}/ucache/23.0.0/linux-aarch64/bin/verification BoostKit-omnishuffle_1.3.0/omnishuffleCache_openeuler-aarch64.tar.gz BoostKit-omnishuffle_1.3.0/omnishuffleCache_openeuler-aarch64.tar.gz.cms BoostKit-omnishuffle_1.3.0/omnishuffleCache_openeuler-aarch64.tar.gz.txt ULOG_Init ret 0
Starting to verify BoostKit-omnishuffle_1.3.0/omnishuffleCache_openeuler-aarch64.tar.gz... Verify the source file passed. Verify the sha file passed.
- 解压软件安装包。
- 查询版本号。
- 通过如下命令查询upgrade版本号。
$OCK_HOME/ucache/23.0.0/linux-aarch64/bin/upgrade [--version/-v]
- 通过如下命令查询verification版本号。
$OCK_HOME/ucache/23.0.0/linux-aarch64/bin/verification --version
- 通过如下命令查询upgrade版本号。