Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个看起来很简单的问题,但我无法完成。我有一个包含许多依赖项的包,我想删除所有这些,不管其他包也依赖它们(它们也被删除)。如何获取可以轻松发送到 xargs aptitude purge 的软件包的所有依赖项列表?谢谢你。
aptitude search -F '%p' '~R^gnome$'
实际上,您可以通过更改search为purge, 来清除它们,而无需xargs.
search
purge
xargs
如果遇到依赖问题,aptitude会问怎么办,提出一些解决方案。然后您可以浏览它们(ncurses UI 在这种情况下很有用,建议更好地解释)。
aptitude
注意不要卸载重要的基础包。有时也会在包依赖项中提到它们。