#!/bin/bash

# Caution: This is common script that is shared by more packages.
# If you need to do changes related to this particular collection,
# create a copy of this file instead of symlink.

THISDIR=$(dirname ${BASH_SOURCE[0]})
source ${THISDIR}/../../../common/functions.sh
source ${THISDIR}/../include.sh

generate_repo "$PACKAGE"

yum install -y ${INSTALL_PKGS}
exit $?

#!/bin/bash

# Caution: This is common script that is shared by more packages.
# If you need to do changes related to this particular collection,
# create a copy of this file instead of symlink.

THISDIR=$(dirname ${BASH_SOURCE[0]})
source ${THISDIR}/../../../common/functions.sh
source ${THISDIR}/../include.sh

generate_repo "$PACKAGE"

yum remove -y ${INSTALL_PKGS}

yum install -y ${INSTALL_PKGS}
exit $?

Use 'yum remove' before 'yum install'
Use 'yum remove' before 'yum install'

Make sure, that packages are not installed in some partial way and weirdly configured