ubuntu20.04,wine 6.0.2(stable版),还没安装任何windos程序
卸载wine
1.列出所有wine.deb
apt list --installed | sed -E 's|(.*)/.*|\1|' | grep -i wine
2.把列出的包删除
sudo apt purge wine-stable-i386
sudo apt purge wine-stable-amd64
sudo apt purge winehp-stable
sudo apt purge wine-stable
3.再次查看
apt list --installed | sed -E 's|(.*)/.*|\1|' | grep -i wine
执行下面一条命令,清除残留配置,出现erro时说明没有残留了。
sudo -l | grep ^rc |awk '{print $2}' | sudo xargs dpkg -P
4.最后残留的依赖包和配置
sudo apt autoremove sudo apt autoclean sudo apt clearn dpkg -l|grep ^rc|awk '{print $2}' |sudo xargs dpkg -P rm -rfv ~/.wine
5.查看如下目录是否有为wine相关残留。按上述步骤来发现并没有wine相关残留
ls .local/share/applications/ ls .config/menus/applications-merged/ ls .local/share/icons/
6.查看系统里是否还有wine
sudo find / -name *wine*