OCI: How To Restrict a Package to a Fixed Version Using yum
Applies To:
Oracle Cloud Infrastructure - Version N/A and later
Oracle Linux x86-64
Goal
This document describes how to lock a package to a fixed version so that it can be excluded from yum update to meet application requirement to keep the package to a particular version.
Solution
From the man page of yum-versionlock:
versionlock is a plugin that takes a set of names and versions for packages and excludes all other versions of those packages. This allows you to protect packages from being updated by newer versions. Alternately, it accepts a specific package version to exclude from updates