温馨提示×

centos怎样安装appimage

小樊
38
2026-09-02 21:29:17
栏目: 智能运维

在 CentOS 上“安装” AppImage 其实不需要传统意义上的安装,AppImage 是一种便携式可执行文件。你只需要赋予执行权限并运行即可。

下面是在 CentOS(CentOS 7 / 8 / Stream 均适用)上使用 AppImage 的完整步骤:


一、基本使用方法(推荐)

1. 下载 AppImage 文件

例如:

wget https://example.com/xxx.AppImage

2. 赋予执行权限

chmod +x xxx.AppImage

3. 运行 AppImage

./xxx.AppImage

✅ 这样就直接运行了,无需安装。


二、常见依赖问题(CentOS 特别注意)

1. FUSE 支持(重要)

很多 AppImage 依赖 FUSE 来挂载自身。

CentOS 7

sudo yum install fuse -y
sudo usermod -a -G fuse $USER

CentOS 8 / Stream

sudo dnf install fuse -y

如果仍然报错:AppImage requires FUSE,可以加参数运行:

./xxx.AppImage --appimage-extract

然后进入 squashfs-root 目录运行程序。


三、图形界面集成(可选)

如果你想像普通程序一样在菜单中打开:

方法 1:使用 appimaged(自动管理)

wget https://github.com/AppImage/appimaged/releases/download/continuous/appimaged-x86_64.AppImage
chmod +x appimaged-x86_64.AppImage
./appimaged-x86_64.AppImage

方法 2:手动创建桌面快捷方式

mkdir -p ~/.local/share/applications

创建文件:

vi ~/.local/share/applications/xxx.desktop

内容示例:

[Desktop Entry]
Name=XXX
Exec=/home/user/xxx.AppImage
Icon=/home/user/xxx.png
Type=Application
Categories=Utility;

四、常见问题

❌ 报错:Permission denied

chmod +x xxx.AppImage

❌ 报错:No such file or directory

可能是 32 位系统缺少 glibc,CentOS 一般没问题。

❌ 服务器无图形界面

AppImage 通常是有 GUI 的程序,服务器版 CentOS 无法运行。


五、总结

✅ CentOS 使用 AppImage 步骤:

  1. 下载 .AppImage
  2. chmod +x
  3. 直接运行
  4. 必要时安装 fuse

如果你有具体的 AppImage 名称或报错信息,我可以帮你针对性解决。

0