debian9.6完全卸载wine

如果是采用如下这种安装方式,卸载倒是比较简单:

## install
guoyanzhang@bogon:~/下载/winetricks-zh-master$ sudo apt-get install wine
## uninstall
guoyanzhang@bogon:~/下载/winetricks-zh-master$ sudo apt-get remove --purge wine*

但是问题是,开始不知道,结果安装了很多版本的wine,用apt-get安装的,用dpkg安装的,单纯的用上面的命令卸载可麻烦了。

 我写了一个allremove.sh。

## begin the allremove.sh
sudo apt-get remove wine* --purge
sudo apt-get automove 
rm -r ~/.local/share/applications
rm -r ~/.config/menus/applications-merged/wine* 
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
rm -rf $HOME/.wine
sudo rm /usr/local/bin/wine64 
sudo rm /opt/wine* -rf
sudo rm /usr/local/bin/wineserver -rf
sudo rm /opt/cxoffice/bin/wineserver -rf
sudo rm /usr/local/bin/wine* -rf
## end the allremove.sh

 我这边是删除干净了,如果你那边还没删除干净,可以使用whereis命令,找到路径再删除就好。

参考1:https://blog.csdn.net/taizhoufox/article/details/5496568

参考2:https://blog.csdn.net/m0_37949799/article/details/79775166

参考3:https://blog.csdn.net/a1eafall/article/details/51967506

猜你喜欢

转载自blog.csdn.net/weixin_39465823/article/details/85917818