How to check for missing dependencies for Data Loss Prevention installation
search cancel

How to check for missing dependencies for Data Loss Prevention installation

book

Article ID: 413271

calendar_today

Updated On:

Products

Data Loss Prevention

Issue/Introduction

There are two servers where 1 server the services start just fine and the 2nd server some or all services will not start. 

Environment

RHEL 8.x and above

DLP 16.0.x and above

Cause

missing dependencies can cause services to not start or certain functions of DLP to fail

Resolution

With the use of yum repoquery and diff, we can see what dependencies are missing from a non working server. 

on each DLP server run the following command to generate all the dependencies that should be installed for DLP to work. 

yum repoquery --quiet --requires --installed --recursive --resolve $(rpm -qa 'symantec') | perl -pe 's/-\d+:\d+.*//' | grep -v -i symantec | sort >> /tmp/working.txt

Sample output of yum repoquery:

NOTE: this will get you a complete list of dependencies needed to run DLP 

To get a list of unsatisfied dependencies or missing:

yum repoquery --unsatisfied $(rpm -qa 'symantec')

You will need to change the /tmp/working.txt to something unique so that diff can compare the files. They filenames need to be different to be able to compare the files. 

To use diff see the man page Diff ManPage

Just to compare the two files the command will be:

diff file1.txt file2.txt

Sample output of a diff:

 

Additional Information

When reviewing the diff output the < pertains to the first file (working.txt) has the content in the file where file2(non_working.txt) has the missing content.