debian9.6完全卸载wine
  dSzaXU8MjqY1 2023年11月02日 45 0


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

## 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命令,找到路径再删除就好。


【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
dSzaXU8MjqY1