
如何刪除 wine 資料夾以及該資料夾中的所有應用程式?
我已經嘗試通過突觸,但它不斷出現在應用程式選單中。
答案1
就我而言,使用以下命令無法有效卸載 Wine:
sudo apt-get --purge remove wine wine64 libwine fonts-wine
所以我做了以下(確保複製準確的命令):
cd $HOME
rm -r .wine
rm .config/menus/applications-merged/wine*
rm -r .local/share/applications/wine
rm .local/share/desktop-directories/wine*
rm .local/share/icons/????_*.xpm
這些命令刪除儲存在硬碟中的文件,這些文件可能會鎖定 wine 的卸載。您很可能會在rm: remove write-protected regular file
這裡收到一些警告。這些可以透過使用f
選項來集體強制執行,即rm -f
andrm -rf
而不是上面的...但是一定要小心你實際上輸入了正確的路徑!
刪除檔案後運行命令:
sudo apt-get remove --purge wine
請執行以下操作來修正任何安裝錯誤。
sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
答案2
第一個答案是獲得這個的簡單形式,但它不完整,完整的程式碼是:
如果您已經從官方 Ubuntu 儲存庫安裝了 wine:
sudo apt-get remove wine --purge
如果您從他們的官方 PPA 安裝了 wine:
sudo apt-get remove wine-1.3 --purge
接下來,清理上下文選單、選單項目等:
rm -rf $HOME/.wine
rm -f $HOME/.config/menus/applications-merged/*wine*
rm -rf $HOME/.local/share/applications/wine
rm -f $HOME/.local/share/desktop-directories/*wine*
rm -f $HOME/.local/share/icons/*wine*
需要重啟系統:
sudo reboot
答案3
執行這些命令來刪除選單項,而不是(或除了)使用「編輯選單」。
rm $HOME/.config/menus/applications-merged/wine*
rm -r $HOME/.local/share/applications/wine
rm $HOME/.local/share/desktop-directories/wine*
答案4
在 11.04 及更低版本中(GNOME 經典)
當您安裝 wine 時,它會在您的應用程式選單中建立一個「wine」選單,並且該選單部分是特定於使用者的。若要刪除選單項,請以滑鼠右鍵按一下選單,然後按一下編輯選單。
現在打開選單編輯器並停用或刪除與葡萄酒相關的條目。您也可以/home/username/.wine
透過在 nautilus 中啟用隱藏檔案或開啟終端機並鍵入 來刪除該資料夾rm -rf ~/.wine
。
11.04 及更高版本(Unity 桌面版)。
alt您需要透過按+f2並鍵入從 Dash 開啟選單編輯器alacarte
。點擊該圖標,將出現選單編輯器。