debian9.6完全卸载wine

本文提供了一种全面卸载Wine的方法,包括通过apt-get和dpkg安装的所有版本。作者分享了一个allremove.sh脚本,用于清除所有Wine相关文件,包括配置文件、注册表和已安装的应用程序。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

## 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.youkuaiyun.com/taizhoufox/article/details/5496568

参考2:https://blog.youkuaiyun.com/m0_37949799/article/details/79775166

参考3:https://blog.youkuaiyun.com/a1eafall/article/details/51967506

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值