Ubuntu系列 - 1. 安装AppImage应用

AppImage 是一种便携式软件包格式,允许你在 Linux 上运行应用程序 无需安装。以下是下载、运行和管理 AppImage 文件的方法

1. 下载 AppImage 文件

2. 赋予 AppImage 文件可执行权限

AppImage 文件运行需要赋予权限,以下是赋予权限的两种方式。

方法1:使用终端

1
2
chmod +x ~/Downloads/your_app.AppImage
./your_app.AppImage

方法2:使用图形界面

  • 右键点击 AppImage 文件,选择 “属性”(Properties)。
  • 切换到 “权限”(Permissions) 选项卡。
  • 勾选 “允许作为可执行文件”(Allow executing file as a program)。
  • 双击 AppImage 运行程序。

3. 使用 AppImageLauncher 管理 AppImage

AppImage 默认不会自动出现在应用菜单中。

AppImageLauncher 可以自动管理 AppImage 并集成到系统菜单中

1
2
3
sudo add-apt-repository ppa:appimagelauncher-team/stable
sudo apt update
sudo apt install appimagelauncher

4. 将 AppImage 移动到 /opt 并创建全局快捷方式

如果你希望让 AppImage 可在整个系统中使用

1
2
3
sudo mv ~/Downloads/your_app.AppImage /opt/your_app.AppImage
sudo chmod +x /opt/your_app.AppImage
sudo ln -s /opt/your_app.AppImage /usr/local/bin/your_app

5. 更新 AppImage

部分 AppImage 支持自动更新,例如:

1
./your_app.AppImage --update
如果 AppImage 不支持更新,你需要手动下载新版并替换旧版。

6. 删除 AppImage

由于 AppImage 是一个独立的可执行文件,删除它就等于卸载:

1
rm ~/Downloads/your_app.AppImage

如果你用 AppImageLauncher 集成了 AppImage,可以在 /Applications 目录中找到它,并右键选择 “删除”。

6.Hugo 部署到 Github Pages 🚀


Ubuntu系列 - 1. 安装AppImage应用
http://yylustb.github.io/2025/01/01/os/Ubuntu/ubuntu_1-install-2025_01_01/
作者
yylustb
发布于
2025年1月1日
许可协议