![我如何从我已有的 zip 文件安装应用程序?](https://linux22.com/image/1182587/%E6%88%91%E5%A6%82%E4%BD%95%E4%BB%8E%E6%88%91%E5%B7%B2%E6%9C%89%E7%9A%84%20zip%20%E6%96%87%E4%BB%B6%E5%AE%89%E8%A3%85%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%EF%BC%9F.png)
我该如何从终端安装 .zip 文件?我尝试从 .zip 文件安装应用程序,当我尝试更改目录(文件名)时,什么都没有出现。我知道我做错了什么,但这一切都让我感到困惑,因为我是新手。(我尝试安装的文件名为 QuestPatcher-ubuntu.zip,位于https://github.com/Lauriethefish/QuestPatcher/releases/tag/2.2.4)
答案1
您必须下载 zip 文件,将其解压缩并放入 $PATH 变量中的某个目录中:
cd ~/Downloads
wget -c https://github.com/Lauriethefish/QuestPatcher/releases/download/2.2.4/QuestPatcher-ubuntu.zip
unzip QuestPatcher-ubuntu.zip
chmod +x QuestPatcher
sudo mv QuestPatcher /usr/local/bin/QuestPatcher
然后使用 从终端调用它QuestPatcher
。