1. 程式人生 > >ubuntu下解除安裝gnome | unity | qt | cuda

ubuntu下解除安裝gnome | unity | qt | cuda

gnome解除安裝:
sudo apt-get remove gnome*
sudo apt remove –purge gnome* (連配置檔案一起刪除)
sudo apt-get autoremove (自動刪除不用的檔案)
(解除安裝gnome時把/usr/share/xsession資料夾刪除了,又自己手動建立了一個,並添加了自己的.desktop檔案)
unity解除安裝:
apt-get -y –auto-remove purge unity
apt-get -y –auto-remove purge unity-common
apt-get -y –auto-remove purge unity-lens*
apt-get -y –auto-remove purge unity-services
apt-get -y –auto-remove purge unity-asset-pool

sudo apt remove –purge unity*

其它的都用類似的方法

linux下,解除安裝軟體的正確姿勢是:
dpkg -l | grep qt | more
找到qt相關的項,找到當時sudo安裝的時候安裝的那個包,
然後
dpkg -r packet_name

dpkg -p packet_name

有時用dpkg -r刪除檔案時會有錯誤提示:
error:depending problem - not removing(有依賴項無法刪除)
這時再換成apt-get remove packet_name即可刪掉

dpkg和apt-get的區別是apt-get考慮專案依賴關係。