How to version lock RPM packages in WHM

  WHM

Introduction

RPMs is a command-line utility for managing packages on Unix/Linux systems. It allows you to install, query, update, verify, and remove. An RPM package update may cause issues or be unable to update due to conflicts, and an RPM version lock may be needed

Prerequisites

  1. A sudo privileged user to SSH the server/ WHM root access to connect terminal
  2. RPM package name

Implementation

SSH the server via the terminal and follow the below steps

Step 1: Install the version lock DNF or Yum plugin to manage version locks

For Centos 7:

$ yum install yum-versionlock
or
$yum install https://vault.centos.org/7.9.2009/os/x86_64/Packages/yum-plugin-versionlock-1.1.31-54.el7_8.noarch.rpm

For AlmaLinux, Rocky Linux, CloudLinux 8+:

$ dnf install python3-dnf-plugin-versionlock

Step 2: Run the version lock command as mentioned below with the RPM package name

$ yum versionlock <PACKAGENAME>

Step 3: List the packages under version lock to verify

$ yum versionlock list

LEAVE A COMMENT