search cancel

rpm installation made with lsm returns SMX000199 dependency violation

book

Article ID: 229013

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

rpm package installation made with lsm returns an error like 
 
SMX000199 Dependency violation: Product "TEST_PKG" requires product "DEP_PKG" with version = 1.0.0.0 (current version= 1.0.0.1).
Reason:  The version of the available product differs from expected version.
Action:  Provide the correct product version.
 
But rpm package could be installed without error with rpm command.
 
 
Example :
 
- Package TEST_PKG-1.0-1.el7.x86_64.rpm has following dependency :
 
rpm -qp TEST_PKG-1.0-1.el7.x86_64.rpm --requires
 
DEP_PKG = 1.0.0
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1
 
 
- Installation of package DEP_PKG-1.0.0-1.el7.x86_64.rpm gives no problem :
lsm -i DEP_PKG-1.0.0-1.el7.x86_64.rpm 
Installation product "DEP_PKG", version "1.0.0.1"
=================================================
Job executed successfully
 
- Installation of package TEST_PKG-1.0-1.el7.x86_64.rpm returns a dependency violation error :
lsm -i TEST_PKG-1.0-1.el7.x86_64.rpm 
SMX000199 Dependency violation: Product "TEST_PKG" requires product "DEP_PKG" with version = 1.0.0.0 (current version= 1.0.0.1).
Reason:  The version of the available product differs from expected version.
Action:  Provide the correct product version.
 
but installation with rpm command gives no error :
rpm -i TEST_PKG-1.0-1.el7.x86_64.rpm

Cause

rpm interprets dependency like
DEP_PKG = 1.0.0
as
DEP_PKG = 1.0.0.*
 
lsm interprets dependency like
DEP_PKG = 1.0.0
as
DEP_PKG = 1.0.0.0
 
It is why installation of DEP_PKG 1.0.0.1 is failing with lsm and not with rpm

Environment

Client Automation on Linux - All Versions

Resolution

This behavior has been changed starting lsm version 4.5 Build 45213230

CA Software Management Installer Version 4.5 (Build 45213230, 11/19/21)

Open a case on CA Broadcom Technical Support to request the latest version of CA Software Management Installer