在 CentOS 上,AppImage 本身不是通过系统包管理器(yum/dnf)来更新的,因为 AppImage 是一个“自带运行环境的单文件程序”。更新 AppImage 通常是重新下载新版本文件并替换旧文件。
下面给你几种常见做法:
~/Downloads/xxx.AppImage
wget https://example.com/new-app.AppImage
mv new-app.AppImage ~/Downloads/xxx.AppImage
chmod +x ~/Downloads/xxx.AppImage
~/Downloads/xxx.AppImage
✅ 简单、可靠,适合大多数情况
部分 AppImage 支持 --appimage-updateinfo:
./xxx.AppImage --appimage-updateinfo
如果支持,可用 AppImageUpdate:
# 安装 AppImageUpdate
wget https://github.com/AppImage/AppImageUpdate/releases/download/continuous/AppImageUpdate-x86_64.AppImage
chmod +x AppImageUpdate-x86_64.AppImage
# 更新
./AppImageUpdate-x86_64.AppImage xxx.AppImage
⚠️ 不是所有 AppImage 都支持
例如写个简单脚本:
#!/bin/bash
URL="https://example.com/app-latest.AppImage"
wget -O ~/app.AppImage $URL
chmod +x ~/app.AppImage
然后:
chmod +x update.sh
./update.sh
可配合 cron 定时更新。
fusermount: command not found
解决:
sudo yum install fuse fuse-libs
或:
./xxx.AppImage --appimage-extract
CentOS 上更新 AppImage = 下载新文件 → 覆盖旧文件 → 加执行权限
如果你告诉我 具体是哪个 AppImage(比如 Obsidian / Typora / 某开发工具),我可以给你精确的更新命令。