ubuntu 16.04 desktop + server LTS - TeamViewer 软件彻底卸载
1. ubuntu 16.04 desktop + server teamviewer Ŀ¼/home/strong/.local/share/teamviewer
/home/strong/.local/share/teamviewer12
2. uninstall teamviewer
sudo apt-get remove teamviewer
卸载 teamviewer,保留配置文件。
删除已安装的软件包 (保留配置文件),不会删除依赖软件包,且保留配置文件。
sudo apt-get autoremove teamviewer
删除为了满足依赖而安装的,但现在不再需要的软件包 (包括已安装包),保留配置文件。
sudo apt-get purge teamviewer
sudo apt-get --purge remove teamviewer
软件包 a,依赖软件包 b,则执行该命令会删除 a,而且不保留配置文件。
remove
remove is identical to install except that packages are removed instead of installed. Note that removing a package leaves its configuration files on the system. If a plus sign is appended to the package name (with no intervening space), the identified package will be installed instead of removed.
purge
purge is identical to remove except that packages are removed and purged (any configuration files are deleted too).
autoremove (and the auto-remove alias since 1.1)
autoremove is used to remove packages that were automatically installed to satisfy dependencies for other packages and are now no longer needed.
--auto-remove, --autoremove
If the command is either install or remove, then this option acts like running the autoremove command, removing unused dependency packages. Configuration Item: APT::Get::AutomaticRemove.
--purge
2.1 sudo apt-get --purge remove teamviewer
strong@foreverstrong:~$ sudo apt-get --purge remove teamviewer [sudo] password for strong: Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libasound2:i386 libdbus-1-3:i386 libexpat1:i386 libfontconfig1:i386 libfreetype6:i386 libice6:i386 libjpeg62:i386 libllvm4.0 libpng12-0:i386 libsm6:i386 libx11-6:i386 libxau6:i386 libxcb1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxinerama1:i386 libxrandr2:i386 libxrender1:i386 libxtst6:i386 linux-headers-4.10.0-40 linux-headers-4.10.0-40-generic linux-headers-4.10.0-42 linux-headers-4.10.0-42-generic linux-headers-4.13.0-26 linux-headers-4.13.0-26-generic linux-headers-4.13.0-31 linux-headers-4.13.0-31-generic linux-headers-4.13.0-32 linux-headers-4.13.0-32-generic linux-headers-4.13.0-36 linux-headers-4.13.0-36-generic linux-headers-4.13.0-37 linux-headers-4.13.0-37-generic linux-headers-4.13.0-38 linux-headers-4.13.0-38-generic linux-headers-4.13.0-39 linux-headers-4.13.0-39-generic linux-image-4.10.0-40-generic linux-image-4.10.0-42-generic linux-image-4.13.0-26-generic linux-image-4.13.0-31-generic linux-image-4.13.0-32-generic linux-image-4.13.0-36-generic linux-image-4.13.0-37-generic linux-image-4.13.0-38-generic linux-image-4.13.0-39-generic linux-image-extra-4.10.0-40-generic linux-image-extra-4.10.0-42-generic linux-image-extra-4.13.0-26-generic linux-image-extra-4.13.0-31-generic linux-image-extra-4.13.0-32-generic linux-image-extra-4.13.0-36-generic linux-image-extra-4.13.0-37-generic linux-image-extra-4.13.0-38-generic linux-image-extra-4.13.0-39-generic linux-signed-image-4.10.0-40-generic linux-signed-image-4.10.0-42-generic linux-signed-image-4.13.0-26-generic linux-signed-image-4.13.0-31-generic linux-signed-image-4.13.0-32-generic linux-signed-image-4.13.0-36-generic linux-signed-image-4.13.0-37-generic linux-signed-image-4.13.0-38-generic linux-signed-image-4.13.0-39-generic Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: teamviewer:i386* 0 upgraded, 0 newly installed, 1 to remove and 193 not upgraded. After this operation, 151 MB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 589322 files and directories currently installed.) Removing teamviewer:i386 (12.0.85001) ... Removed symlink /etc/systemd/system/multi-user.target.wants/teamviewerd.service. Clearing assignments ... done Purging configuration files for teamviewer:i386 (12.0.85001) ... dpkg: warning: while removing teamviewer:i386, directory '/opt' not empty so not removed Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ... Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ... Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ... Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for mime-support (3.59ubuntu1) ... strong@foreverstrong:~$ strong@foreverstrong:~$ sudo dpkg --purge teamviewer [sudo] password for strong: dpkg: warning: ignoring request to remove teamviewer which isn't installed strong@foreverstrong:~$
2.2 rm -rf /home/strong/.local/share/******
rm -rf /home/strong/.local/share/teamviewer
rm -rf /home/strong/.local/share/teamviewer12
rm -rf /home/strong/.config/teamviewer
strong@foreverstrong:~$ rm -rf /home/strong/.local/share/teamviewer
strong@foreverstrong:~$ rm -rf /home/strong/.local/share/teamviewer12
strong@foreverstrong:~$
3. Restart the machine