How to relocate RPM installs on DLP 15.1 GA

book

Article ID: 173668

calendar_today

Updated On:

Products

Data Loss Prevention Enforce

Issue/Introduction

According to the upgrade guide the rpm installation can be installed to different locations see upgrade guide on page 30

On the second command an error of RPM already installed may appear

Cause

In the upgrade guide it lists that you can use rpm switch --relocate to change the installation path of Enforce. 

You have to stack the --relocate switches to be able to relocate multiple directories

Environment

Redhat 7.x 

Redhat 6.x 

Resolution

this script will help relocate different directories 

##############################################

##Relocate script for 15.1 upgrade/install#############

##02/01/2019###################################

##Author: David Martin############################

#!/bin/bash

#DEFAULT LOCATIONS

SLOG="/var/log/Symantec/DataLossPrevention"

SVAR="/var/Symantec/DataLossPrevention"

SOPT="/opt/Symantec/DataLossPrevention"

SRUN="/var/run/Symantec/DataLossPrevention"

#NEW locations

LOG="/var/log/dlp"

VAR="/var/symc/DLP"

OPT="/opt/symc/DLP"

RUN="/var/run/Symc/DLP"

##variables for the 15.x rpms 

CCS="symantec-dlp-15-1-content-extraction-service-15.1-1.el6.x86_64.rpm"

KEYVIEW="symantec-dlp-keyview-11-4-11.4.0.0-1.el6.x86_64.rpm"

PLUGINS="symantec-dlp-15-1-content-extraction-plugins-15.1-1.el6.x86_64.rpm"

COMMON="symantec-dlp-15-1-server-platform-common-15.1-1.el6.x86_64.rpm"

ENFORCE_DEP="symantec-dlp-enforce-server-system-dependencies-1.0.0-1.el6.x86_64.rpm"

ENFORCE_SERV="symantec-dlp-15-1-enforce-server-15.1-1.el6.x86_64.rpm"

#symantec-dlp-15-1-content-extraction-service-15.1-1.el6.x86_64.rpm

rpm -ivh --relocate $SOPT=$OPT --relocate $SVAR=$VAR --relocate $SLOG=$LOG --relocate $SRUN=$RUN $CCS

#keyview RPM

rpm -ivh --relocate $SOPT=$OPT $KEYVIEW

#content extraction plugins

rpm -ivh --relocate $SOPT=$OPT --relocate $SVAR=$VAR --relocate $SLOG=$LOG --relocate $SRUN=$RUN $PLUGINS

#server platform

rpm -ivh --relocate $SOPT=$OPT --relocate $SVAR=$VAR $COMMON

#enforce-server-system-dependencies

rpm -ivh --relocate $SOPT=$OPT $ENFORCE_DEP 

 

#enforce server

rpm -ivh --relocate $SOPT=$OPT --relocate $SVAR=$VAR --relocate $SLOG=$LOG --relocate $SRUN=$RUN $ENFORCE_SERV

 

NOTE: What available relocate commands or locations are available.  

To view what each rpm is configured for you can run the following command. 

Below is an example output of the above command:

Attachments