ubuntu上卸載DEB文件

首先使用下面的命令查詢要卸載的文件名:

dkpg -l

然後再通過下面的命令卸載:

dkpg -r *

比如我們要卸載google的chrome瀏覽器:

首先執行dkpg -l:

root@lqm:/home/lqm# dpkg -l

Desired=Unknown/Install/Remove/Purge/Hold

| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend

|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

||/ 名稱                                 版本                                 簡介

+++-======================================-======================================-============================================================================================

ii  acpi-support                           0.137                                  scripts for handling many ACPI events

ii  acpid                                  1.0.10-5ubuntu4                        Advanced Configuration and Power Interface event daemon

ii  adduser                                3.112ubuntu1                           add and remove users and groups

......
ii  google-chrome-stable                   11.0.696.71-r86024                     The web browser from Google
上面chrome的全稱已被列出,然後使用下面的命令刪除:
dpkg -r google-chrome-stable
打印如下信息:
root@lqm:/home/lqm# dpkg -r google-chrome-stable
(正在讀取數據庫 ... 系統當前共安裝有 137065 個文件和目錄。)
正在卸載 google-chrome-stable ...
正在處理用於 desktop-file-utils 的觸發器...
正在處理用於 python-gmenu 的觸發器...
Rebuilding /usr/share/applications/desktop.zh_CN.utf8.cache...
正在處理用於 man-db 的觸發器...
正在處理用於 python-support 的觸發器...
root@lqm:/home/lqm# 
程序卸載完成。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章