Wine 在模擬 Windows 環境時會在家目錄建立大量配置檔、虛擬 C 槽、選單捷徑等。單純 apt remove wine 只會刪除套件本體,殘留資料可能佔用空間、污染選單、甚至影響後續重裝相容性。
sudo apt-get remove --purge wine* # 通配符一次清理所有 wine 相關套件
rm -rf ~/.wine
sudo apt-get autoremove --purge
rm -rf ~/.local/share/applications/wine*
rm -rf ~/.config/menus/applications-merged/wine*
上述指令使用 rm -rf 搭配 root 或家目錄絕對路徑,**請三確認路徑無誤再執行**,誤刪系統關鍵目錄將導致災難性後果。建議先用 ls 確認目標存在再下刪除指令。
dpkg -l | grep -i wine # 應無輸出
ls -la ~/.wine # 應提示 No such file or directory