`sudo apt-get autoremove package*` 这个命令有多危险?

我正在删除所有以前的Eclipse版本根据我阅读的答案, 所以我使用了 sudo apt-get autoremove eclipse*。它说将卸载约40 Mb的文件,所以我同意认为它将在预期的范围内工作。
预期的行为是它会删除应用程序本身以及它的依赖项。在我的情况下,它开始删除一些linux-headerspython包等,我不认为它们与Eclipse有关,这让我感到担忧。帮帮我?
1个回答

一点也不危险。来自man apt-get的说法:
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.

从那个描述来看,我猜没有任何重要的东西被移除,尽管很多linux-headers和听起来很重要的东西在屏幕上飞来飞去。谢谢,我会研究一下package*参数的行为。 - JoseHdez_2
1没错。linux-headers和其他的软件包可能是来自旧内核,已经不再使用了。而package*参数是模式匹配,意味着“以'package'开头的任何东西”。 - wjandrea