在Debian系统中卸载旧程序,可根据安装方式选择对应方法,以下是常用方式:
dpkg -l | grep 关键词 或 apt list --installed | grep 关键词 查找软件包名。sudo apt remove 包名sudo apt purge 包名 或 sudo dpkg --purge 包名。sudo apt autoremove。sudo apt clean。which 程序名 或 whereis 程序名 找到安装路径,用 sudo rm -rf 路径 删除。~/.config/、~/.local/share/、/etc/ 等目录下的相关配置文件。dpkg -l | grep '^rc' 查找残留配置并删除。参考来源: