I am working with Amazon Linux 2013.09. I have a module that requires dependency perl( module_compat_5.10.0). When I try and update using yum, the package manager tries to upgrade it as well and breaks the dependency or stops updating most of the OS.

Is there a way I could keep the dependency for just my module and upgrade it for the rest of the OS ? If I was still Installing this module on a newer OS would it be possible to install this dependency and use it just for this module with out downgrading it for the rest of the OS ?

Any help would be appreciated.

  • have you tried exclude=<rpm> in /etc/yum.conf? – MikeA Sep 29 '16 at 22:59
  • yea , the update still keeps failing as all other components would need the package to be updated. – nwarriorch Oct 5 '16 at 21:03
yum install yum-plugin-versionlock
yum versionlock <package-name>


  • Thanks for your response, I could lock the dependency but since other parts of the OS require the same package to be updated to work. yum update just fails. – nwarriorch Oct 5 '16 at 21:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.