如何使用pacman强制删除Arch中的包,而其他包仍然依赖于它。
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分裂了一整堆软件包,我需要删除它,以便我可以重新安装它。
发布于 2011-03-27 15:32:57
您应该能够用一个简单的方法重新安装软件包:
# pacman -S perl-libwww这只会删除:
# pacman -Rdd perl-libwww请注意命令中的double -d,如果您使用--nodeps,您必须将其指定两次,或者将其与-d组合起来,例如:
# pacman -R --nodeps --nodeps perl-libwww
# pacman -Rd --nodeps perl-libwww这将删除所有依赖于perl的包:
# 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.
https://unix.stackexchange.com/questions/10178
复制相似问题