温馨提示×

centos怎么更新appimage

小樊
41
2026-10-08 20:09:50
栏目: 智能运维

在 CentOS 上,AppImage 本身不是通过系统包管理器(yum/dnf)来更新的,因为 AppImage 是一个“自带运行环境的单文件程序”。更新 AppImage 通常是重新下载新版本文件并替换旧文件。

下面给你几种常见做法:


一、手动更新(最常用)

  1. 找到你原来的 AppImage 文件
~/Downloads/xxx.AppImage
  1. 去官网或 GitHub 下载新版本 例如:
wget https://example.com/new-app.AppImage
  1. 替换旧文件
mv new-app.AppImage ~/Downloads/xxx.AppImage
chmod +x ~/Downloads/xxx.AppImage
  1. 运行
~/Downloads/xxx.AppImage

✅ 简单、可靠,适合大多数情况


二、使用 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 定时更新。


四、CentOS 特别注意事项

  1. FUSE 问题(常见) 运行 AppImage 报错:
fusermount: command not found

解决:

sudo yum install fuse fuse-libs

或:

./xxx.AppImage --appimage-extract
  1. CentOS 7 老系统 部分新 AppImage 需要较新 glibc,可能无法直接运行。

五、总结一句话

CentOS 上更新 AppImage = 下载新文件 → 覆盖旧文件 → 加执行权限

如果你告诉我 具体是哪个 AppImage(比如 Obsidian / Typora / 某开发工具),我可以给你精确的更新命令。

0 踩