# How to Remove / Uninstall Software in Raspberry Pi
首先開啟 LX 終端機, 下 dpkg --list 指令顯示目前已安裝的軟體 :
pi@raspberrypi:~ $ dpkg --list
.....
ii tasksel 3.39 all tool for selecting tasks for inst
ii tasksel-data 3.39 all official tasks used for installat
ii tcpd 7.6.q-26 armhf Wietse Venema's TCP wrapper utili
ii teamviewer-host 14.1.9025 armhf Remote control solution.
ii timidity 2.13.2-40.5 armhf Software sound renderer (MIDI seq
ii tk8.6-blt2.5 2.5.3+dfsg-3 armhf graphics extension library for Tc
ii traceroute 1:2.1.0-2 armhf Traces the route taken by packets
ii tree 1.7.0-5 armhf displays an indented directory tr
.....
找到 Teamviewer 的軟體名稱為 teamviewer-host, 解除安裝指令為帶 --purge 參數的 apt-get 指令 :
pi@raspberrypi:~ $ sudo apt-get --purge remove teamviewer-host
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
The following packages were automatically installed and are no longer required:
libqt5qml5 libqt5quick5 libqt5webkit5 qml-module-qtgraphicaleffects qml-module-qtquick-controls qml-module-qtquick-dialogs
qml-module-qtquick-layouts qml-module-qtquick-privatewidgets qml-module-qtquick-window2 qml-module-qtquick2
Use 'sudo apt autoremove' to remove them.
下列套件將會被【移除】:
teamviewer-host*
升級 0 個,新安裝 0 個,移除 1 個,有 0 個未被升級。
此操作完成之後,會空出 47.3 MB 的磁碟空間。
是否繼續進行 [Y/n]? [Y/n] Y
(讀取資料庫 ... 目前共安裝了 133614 個檔案和目錄。)
Removing teamviewer-host (14.1.9025) ...
Removed /etc/systemd/system/multi-user.target.wants/teamviewerd.service.
Clearing assignments ...
done
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
(讀取資料庫 ... 目前共安裝了 133506 個檔案和目錄。)
Purging configuration files for teamviewer-host (14.1.9025) ...
最後可能還有相依模組, 要下 autoremove 指令清掉 :
pi@raspberrypi:~ $ sudo apt autoremove
沒有留言 :
張貼留言