首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用pacman强制移除Arch中的包?

如何使用pacman强制移除Arch中的包?
EN

Unix & Linux用户
提问于 2011-03-27 15:13:34
回答 1查看 147.6K关注 0票数 77

如何使用pacman强制删除Arch中的包,而其他包仍然依赖于它。

代码语言:javascript
复制
pacman -R perl-libwww                                                               
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: perl-app-cpanminus: requires perl-libwww>=5.828
:: perl-app-pmuninstall: requires perl-libwww
:: perl-app-sd: requires perl-libwww
:: perl-catalyst-action-rest: requires perl-libwww>=2.033 
:: perl-catalyst-runtime: requires perl-libwww>=1.64
:: perl-cpan: requires perl-libwww
:: perl-cpan-mini: requires perl-libwww
:: perl-cpan-uploader: requires perl-libwww
:: perl-feed-find: requires perl-libwww
:: perl-http-body: requires perl-libwww
:: perl-http-request-ascgi: requires perl-libwww
:: perl-module-cpants-analyse: requires perl-libwww
:: perl-module-install: requires perl-libwww>=5.812
:: perl-net-trac: requires perl-libwww
:: perl-net-whois-raw: requires perl-libwww
:: perl-prophet: requires perl-libwww
:: perl-rt-client-rest: requires perl-libwww
:: perl-uri-fetch: requires perl-libwww
:: perl-www-mechanize: requires perl-libwww
:: perl-xml-atom: requires perl-libwww
:: perl-xml-feed: requires perl-libwww

基本上LWP 6分裂了一整堆软件包,我需要删除它,以便我可以重新安装它。

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2011-03-27 15:32:57

您应该能够用一个简单的方法重新安装软件包:

代码语言:javascript
复制
# pacman -S perl-libwww

这只会删除:

代码语言:javascript
复制
# pacman -Rdd perl-libwww

请注意命令中的double -d,如果您使用--nodeps,您必须将其指定两次,或者将其与-d组合起来,例如:

代码语言:javascript
复制
# pacman -R --nodeps --nodeps perl-libwww
# pacman -Rd --nodeps perl-libwww

这将删除所有依赖于perl的包:

代码语言:javascript
复制
# pacman -Rc perl-libwww

来自pacman的手册页:

-d, --nodeps Skips dependency version checks. Package names are still checked. Normally, pacman will always check a package’s dependency fields to ensure that all dependencies are installed and there are no package conflicts in the system. Specify this option twice to skip all dependency checks. -c, --cascade Remove all target packages, as well as all packages that depend on one or more target packages. This operation is recursive, and must be used with care since it can remove many potentially needed packages.

票数 114
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/10178

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档