我正在运行 Ubuntu 16.04 LTS。我用了sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
apt-clone archdetect-deb canonical-poke dmeventd dmraid
gir1.2-timezonemap-1.0 kde-config-screenlocker kinit kio kpackagelauncherqml
kpackagetool5 kpartx kpartx-boot kwayland-data kwayland-integration kwin
kwin-common kwin-data kwin-x11 libbonobo2-0 libbonobo2-common libdb5.3++
libdebian-installer4 libdevmapper-event1.02.1 libdmraid1.0.0.rc16 libfam0
libgnome-2-0 libgnome2-common libgnomevfs2-0 libgnomevfs2-common
libkdecorations2-5v5 libkdecorations2private5v5 libkf5activities5
libkf5archive5 libkf5attica5 libkf5auth-data libkf5auth5
libkf5bookmarks-data libkf5bookmarks5 libkf5calendarevents5
libkf5codecs-data libkf5codecs5 libkf5completion-data libkf5completion5
libkf5config-bin libkf5config-data libkf5configcore5 libkf5configgui5
libkf5configwidgets-data libkf5configwidgets5 libkf5coreaddons-data
libkf5coreaddons5 libkf5crash5 libkf5dbusaddons-bin libkf5dbusaddons-data
libkf5dbusaddons5 libkf5declarative-data libkf5declarative5
libkf5globalaccel-bin libkf5globalaccel-data libkf5globalaccel5
libkf5globalaccelprivate5 libkf5gpgmepp5 libkf5guiaddons5 libkf5i18n-data
libkf5i18n5 libkf5iconthemes-bin libkf5iconthemes-data libkf5iconthemes5
libkf5idletime5 libkf5itemviews-data libkf5itemviews5 libkf5jobwidgets-data
libkf5jobwidgets5 libkf5kcmutils-data libkf5kcmutils5
libkf5kdelibs4support-data libkf5kdelibs4support5 libkf5kdelibs4support5-bin
libkf5kiocore5 libkf5kiofilewidgets5 libkf5kiontlm5 libkf5kiowidgets5
libkf5newstuff-data libkf5newstuff5 libkf5notifications-data
libkf5notifications5 libkf5package-data libkf5package5 libkf5parts-data
libkf5parts-plugins libkf5parts5 libkf5plasma5 libkf5plasmaquick5
libkf5quickaddons5 libkf5service-bin libkf5service-data libkf5service5
libkf5solid5 libkf5solid5-data libkf5sonnet5-data libkf5sonnetcore5
libkf5sonnetui5 libkf5textwidgets-data libkf5textwidgets5 libkf5wallet-bin
libkf5wallet-data libkf5wallet5 libkf5waylandclient5 libkf5waylandserver5
libkf5widgetsaddons-data libkf5widgetsaddons5 libkf5windowsystem-data
libkf5windowsystem5 libkf5xmlgui-bin libkf5xmlgui-data libkf5xmlgui5
libkscreenlocker5 libkwalletbackend5-5 libkwin4-effect-builtins1
libkwineffects7 libkwinglutils7 libkwinxrenderutils7 liblvm2app2.2
liblvm2cmd2.02 liborbit-2-0 libparted-fs-resize0 libphonon4qt5-4
libpolkit-qt5-1-1 libqt4-designer libqt4-help libqt4-opengl
libqt4-scripttools libqt4-test libqt5script5 libqtassistantclient4
libqtwebkit4 libreadline5 libvoikko1 libxcb-composite0 libxcb-cursor0
libxcb-damage0 linux-headers-4.4.0-23 linux-headers-4.4.0-23-generic
linux-headers-4.4.0-40 linux-headers-4.4.0-40-generic
linux-image-4.4.0-23-generic linux-image-4.4.0-40-generic
linux-image-extra-4.4.0-23-generic linux-image-extra-4.4.0-40-generic
linux-signed-image-4.4.0-23-generic linux-signed-image-4.4.0-40-generic
linux-tools-4.4.0-23 linux-tools-4.4.0-23-generic lvm2 plasma-framework
python3-icu python3-pam python3-pyqt4 python3-sip
qml-module-org-kde-kquickcontrols qml-module-org-kde-kquickcontrolsaddons
rdate sonnet-plugins
0 upgraded, 0 newly installed, 164 to remove and 0 not upgraded.
After this operation, 803 MB disk space will be freed.
Do you want to continue? [Y/n] y
它是否删除了一些不应该删除的东西?
如果您的系统在做之前运行良好,
autoremove
那么答案是否定的,您并没有因为做而破坏任何东西autoremove
。apt-get autoremove
删除孤立的依赖项,即作为所需包的依赖项安装但在删除/清除这些所需的包后变成孤立的包。所以,除非你在做之前没有删除任何必要
autoremove
的东西,否则你不能仅仅通过运行它来破坏系统。