清除所有依赖项
我有一个看起来很简单的问题,但我无法完成。我有一个包含许多依赖项的包,我想删除所有依赖项,无论其他包是否也依赖于它们(它们也被删除)。如何获取可以轻松发送到 xargs aptitude purge 的包的所有依赖项的列表?谢谢。
I've a problem that seems quite simple, but I can't get it done. I have a package with many dependencies and I want to remove ALL of them, regardless wheather other packages also depend on them ( they get removed too ). How can I get a list of all dependencies of a package that I can easily send to xargs aptitude purge ? Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
aptitude search -F '%p' '~R^gnome$'
实际上,您可以通过将
search
更改为purge
来清除它们,而无需xargs
。如果出现依赖性问题,
aptitude
会询问该怎么做,并提出一些解决方案。然后您可以浏览它们(ncurses UI 在这种情况下很有用,命题得到了更好的解释)。注意不要卸载重要的基础包。有时也会在包依赖项中提到它们。
aptitude search -F '%p' '~R^gnome$'
You can actually purge them by changing
search
intopurge
, withoutxargs
.In case of dependency problems,
aptitude
will ask what to do, proposing some resolutions. You can then browse through them (ncurses UI is useful in this case, propositions are better explained).Be careful not to uninstall important base packages. They are sometimes mentioned in package dependencies too.