rpm -e 忽略依賴刪除包


執行: sudo yum -y install gcc gcc-c++ make automake autoconf pcre pcre-devel zlib zlib-devel openssl openssl-devel libtool,報錯如下:

Error: Multilib version problems found. This often means that the root
cause is something else and multilib version checking is just
pointing out that there is a problem. Eg.:

1. You have an upgrade for zlib which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of zlib of the
different architecture. If you exclude the bad architecture
yum will tell you what the root cause is (which package
requires what). You can try redoing the upgrade with
--exclude zlib.otherarch ... this should give you an error
message showing the root cause of the problem.

2. You have multiple architectures of zlib installed, but
yum can only see an upgrade for one of those architectures.
If you don't want/need both architectures anymore then you
can remove the one with the missing update and everything
will work.

3. You have duplicate versions of zlib installed already.
You can use "yum check" to get yum show these errors.

...you can also use --setopt=protected_multilib=false to remove
this checking, however this is almost never the correct thing to
do as something else is very likely to go wrong (often causing
much more problems).

Protected multilib versions: zlib-1.2.7-18.el7.x86_64 != zlib-1.2.7-17.el7.i686

 

需要刪除 zlib-1.2.7-17.el7.i686 ,但是該版本有依賴,可以通過 加上 --nodeps 忽略依賴

rpm -e zlib-1.2.7-17.el7.i686 --nodeps

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM