如何在Amazon Linux 2 上解压?

How to unzip on Amazon Linux 2?

我有一个文件名 awscliv2.zip,我正在尝试解压缩它。

所以我首先尝试了:

unzip awscliv2.zip

但是得到了:

-bash: unzip: command not found

然后我尝试了:

tar xvf awscliv2.zip

但是得到了:

tar: This does not look like a tar archive

tar: Skipping to next header

tar: Exiting with failure status due to previous errors

您可以安装 unzip 使用:

sudo yum install unzip