温馨提示×

debian怎么卸载cximage包

小樊
46
2026-10-11 06:02:51
栏目: 智能运维

在 Debian 里“cximage”通常不是通过 apt 直接提供的一个标准包名(它更多是一个 C++ 图像处理库,常见于源码编译或第三方打包)。不过可以按下面几种情况来处理。


一、如果你是用 apt / dpkg 安装的

1. 先确认包名

dpkg -l | grep -i cximage

或者

apt list --installed | grep -i cximage

2. 卸载(保留配置)

sudo apt remove cximage

3. 完全卸载(删除配置)

sudo apt purge cximage

4. 清理依赖

sudo apt autoremove

二、如果你是源码编译安装的(最常见情况)

Debian 官方仓库一般没有 cximage,很多人是 make && make install 装的。

1. 如果有 Makefile 支持卸载

进入源码目录:

cd cximage
sudo make uninstall

2. 如果没有 uninstall(大多数情况)

手动删除文件,例如:

sudo rm -f /usr/local/lib/libcximage*
sudo rm -rf /usr/local/include/cximage

或查找安装位置:

find /usr/local -iname '*cximage*'

三、如果你是 Python 的 cximage(较少见)

pip uninstall cximage

或

pip3 uninstall cximage

四、确认是否还存在

ldconfig -p | grep cximage
which cximage

如果你能告诉我:

  • 是怎么装的(apt / 源码 / pip)
  • dpkg -l | grep cximage 的输出

我可以给你更精确的卸载命令。

0 踩