使用unzip命令时报错,提示-bash: unzip: command not found ,unzip相关程序未找到,网上搜安装命令 https://www.cnblogs.com/juihai/p/10566274.html :
#获取安装列表 yum安装列表中搜索zip/unzip是否存在
yum list | grep zip/unzip
#执行安装支持zip命令 根据提示输入y允许安装
yum install zip
#执行安装支持unzip命令 根据提示输入y允许安装
yum install unzip
执行 获取安装列表时,提示 Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast (https://cloud.tencent.com/developer/article/1409686),执行 yum makecache fast 命令更新本地yum源缓存,然后继续执行上一个命令。
获取安装列表、安装zip相关程序
安装unzip相关程序 并测试解压一个jar文件