Symantec Privileged Access Management

Tech Tip - (CA Privileged Identity Manager) : Script to automate installation of required RPM packages on RHEL Server before installing Enterprise Management Server 

12-29-2015 01:33 PM

CA Privileged Access Manager Server Control (CA Privileged Identity Manager) R12.9 Sp1 : Tech Tip by Reatesh Sanghi, Principal Support Engineer, for Date: 29/12/2015

 

While preparing a Linux Server for installing Privileged Access Manager Server, we are required to install a lot of packages as documented. You can choose to install each of these individually or choose to copy the below script on your RHEL server and execute this script for installing all the required packages and also be able to identify if any of the packages are not installed. The cause for some of the packages not being installed could be that you have a new version of the package which differs from the list of package names from the documentation or that the YUM repository needs to be updated.

 

--------------------------------------------

#!/bin/bash

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

### Below is the list of RPM's to be installed as per documentation #####

 

 

rpmList="audit-libs.i686 audit-libs.x86_64 audit-libs-devel.x86_64 audit-libs-python.x86_64 bc.x86_64 boost-devel.x86_64 cairo.x86_64 compat-db.x86_64 compat-db42.x86_64 compat-db43.x86_64 compat-expat1.x86_64 compat-glibc.x86_64 compat-glibc-headers.x86_64 compat-libcap1.x86_64 compat-libf2c-*.x86_64 compat-libgfortran-*.x86_64 compat-libstdc++-*.i686 compat-libstdc++-*.x86_64 compat-libtermcap.x86_64 compat-openldap.x86_64 compat-openmpi.x86_64 compat-openmpi-psm.x86_64 compat-opensm-libs.x86_64 compat-readline5.x86_64 cracklib.x86_64 db4.i686 db4.x86_64 dejavu-fonts-common.noarch dejavu-sans-mono-fonts.noarch dos2unix.x86_64 elfutils.x86_64 elfutils-libs.x86_64 fprintd-pam.x86_64 freerdp.x86_64 freerdp-libs.x86_64 glib2-devel.x86_64 glibc.i686 glibc.x86_64 glibc-common.x86_64 glibc-devel.x86_64 glibc-headers.x86_64 gnome-keyring-pam.x86_64 ksh.x86_64 libgcc.i686 libgcc.x86_64 libICE.i686 libICE.x86_64 libICE-devel.x86_64 libpng.x86_64 libselinux.i686 libselinux.x86_64 libSM.i686 libSM.x86_64 libSM-devel.x86_64 libssh2.x86_64 libstdc++-.i686 libstdc++-.x86_64 libstdc++-devel.x86_64 libXext.i686 libXext.x86_64 libXext-devel.x86_64 libXp.i686 libXp.x86_64 libXpm.x86_64 libXt.i686 libXt.x86_64 libXt-devel.x86_64 libXtst.x86_64 libXtst-devel.x86_64 mksh.x86_64 ncurses.x86_64 ncurses-base.x86_64 ncurses-devel.i686 ncurses-devel.x86_64 ncurses-libs.i686 ncurses-libs.x86_64 pam.i686 pam.x86_64 pam_krb5.x86_64 pam_passwdqc.x86_64 pam-devel.x86_64 pango.x86_64 rpm-build.x86_64"

 

 

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

#### Deleting any of the Log files with the below name from the location where this script would be executed #######

 

rm -Rf Operation.log Rpm_Not_Available.log Rpm_Not_Available.txt

yum_status=`yum repolist | grep repolist | cut -d ' ' -f2 | sed "s/,//g"`

echo $yum_status

 

 

if [ $yum_status -gt 0 ]

then

        for i in `echo $rpmList`

        do

        rpm -q ${i}

                if [ $? -gt 0 ]

                then

                        echo "$i is Not Installed on the Server:`hostname`, Instaling now..." >> Operation.log

                        yum install ${i} -y > /dev/null 2>&1

                                if [ $? -gt 0 ]

                                then

                                        echo "$i" >> Rpm_Name_Not_Available.log

                                        echo "$i not available in the current repository" >> Rpm_Not_Available.txt

                                fi

                else

                        echo "$i is Installed on the Server:`hostname`" >> Operation.log

                fi

        done

fi

echo "##############################################"

echo "End of the script"

-----------------------------------------------------------------------------------------------------------------------------

Statistics
0 Favorited
1 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
zip file
install_rpm.txt.zip   1K   1 version
Uploaded - 05-29-2019

Tags and Keywords

Related Entries and Links

No Related Resource entered.