Muh*_*ana 7 xfce uninstall apt dpkg
我怀疑安装xfce4会导致 Ubuntu 中出现一些问题,因此我使用apt-get remove xfce4 xfce4-goodeis.
但是当我运行 'dpkg -l' 时,我仍然可以看到xfce4 的一些库和包:
$ dpkg -l | grep -i xfce
rc libexo-1-0:amd64 0.10.2-2 amd64 Library with extensions for Xfce
rc libgarcon-1-0 0.2.1-1 amd64 freedesktop.org compliant menu implementation for Xfce
rc libxfce4ui-1-0 4.11.0-0ubuntu1~ppa0.13.10.1 amd64 widget library for Xfce - Gtk+2 variant
rc libxfce4ui-common 4.11.0-0ubuntu1~ppa0.13.10.1 all common files for libxfce4ui
rc libxfce4util6 4.10.1-1 amd64 Utility functions library for Xfce4
rc libxfcegui4-4 4.10.0-2 amd64 Basic GUI C functions for Xfce4
rc libxfconf-0-2 4.10.0-2 amd64 Client library for Xfce4 configure interface
rc mousepad 0.3.0-2 amd64 simple Xfce oriented text editor
rc thunar 1.6.3-1ubuntu1 amd64 File Manager for Xfce
rc xfce4-appfinder 4.10.1-1 amd64 Application finder for the Xfce4 Desktop Environment
rc xfce4-clipman 2:1.2.3-2ubuntu1 amd64 clipboard history utility
rc xfce4-mixer 1:4.10.0-1ubuntu2 amd64 Xfce mixer application
rc xfce4-notes 1.7.7-3ubuntu2 amd64 Notes application for the Xfce4 desktop
rc xfce4-panel 4.10.1-1ubuntu1 amd64 panel for Xfce4 desktop environment
rc xfce4-power-manager 1.2.0-2ubuntu1 amd64 power manager for Xfce desktop
rc xfce4-session 4.10.1-1ubuntu1 amd64 Xfce4 Session Manager
rc xfce4-settings 4.11.1-0ubuntu1~ppa0.13.10.1 amd64 graphical application for managing Xfce settings
rc xfce4-terminal 0.6.2-3ubuntu1.1 amd64 Xfce terminal emulator
rc xfce4-volumed 0.2.0-0ubuntu1 amd64 volume keys daemon
rc xfdesktop4 4.11.2-0ubuntu1~ppa0.13.10.1 amd64 xfce desktop background, icons and root menu manager
rc xfwm4 4.11.1-0ubuntu1~ppa0.13.10.1 amd64 window manager of the Xfce project
Run Code Online (Sandbox Code Playgroud)
我复制粘贴了所有这些包\库以形成一个apt-get remove删除所有这些依赖项的命令,并且该命令正常运行,但运行dpkg -l | grep -i xfce再次显示这些依赖项!
为什么这些依赖项仍然安装?
请注意rc列表开头的 。
r:删除(标记为删除)
c:存在配置文件。
apt-get remove和purge(From man apt-get)之间的区别
remove
remove is identical to install except that packages are removed instead of installed.
Note the removing a package leaves its configuration files in system.
purge
purge is identical to remove except that packages are removed and purged (any
configuration files are deleted too).
Run Code Online (Sandbox Code Playgroud)
当你选择时apt-get remove,你dpkg -l反映了这一点。如果你会被利用,apt-get purge你可以避免这种情况。要摆脱这些,请在终端中尝试,
dpkg --list | grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg --purge
Run Code Online (Sandbox Code Playgroud)
它将清除所有标记为要删除的包。在清除它们之前,您可以检查要清除的列表,
dpkg --list | grep "^rc" | cut -d " " -f 3
Run Code Online (Sandbox Code Playgroud)
我想除了那些来自xfce. 如果您不确定。使用以下代替,
dpkg --list | grep -i xfce | cut -d " " -f 3 | xargs sudo dpkg --purge
Run Code Online (Sandbox Code Playgroud)