Resolve yum installation error Protected multilib versions

  • 2021-06-28 14:51:42
  • OfStack

Today when installing nginx on a cloud server, you need to install a number of dependent libraries such as zlib first, but there was an error installing zlib.


yum install -y zlib zlib-devel

(-y refers to the automatic y if yes no needs to be selected) Here is the error


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

The reason is that multiple libraries can't coexist, but updating doesn't work either, but you can add them after the installation command


--setopt=protected_multilib=false

The complete command is


yum install -y zlib zlib-devel --setopt=protected_multilib=false

Okay, perfect solution, Prefect


Related articles: