Installing multiple versions of same package.

I need to install a older version of gnupg but not delete the current version of gnup2 on RHEL 6.4. What would be the correct syntax to install this? Tried to install and relocate it and still getting conflicts.

aXXXXXX:root# rpm -ivh /root/rpmbuild/RPMS/x86_64/gnupg-1.4.16-1.x86_64.rpm
Preparing...                ########################################### [100%]
        file /usr/bin/gpg from install of gnupg-1.4.16-1.x86_64 conflicts with file from package gnupg2-2.0.14-4.el6.x86_64
        file /usr/bin/gpg-zip from install of gnupg-1.4.16-1.x86_64 conflicts with file from package gnupg2-2.0.14-4.el6.x86_64


rpm --prefix=/opt -ivh gnupg-1.4.16-1.x86_64.rpm
error: package gnupg is not relocatable
  1. Try using chroot jail
  2. Do some engineering on RPM package to change installation directory

Hello Soupbone38,

Could you please tell where did you find the package

gnupg-1.4.16-1.x86_64

I am looking for gnupg 1.4.13 or higher from branch 1 of gnupg and I can't find it.

This is RHEL 6.5.

It will be very hepful.

Thank you.

---------- Post updated at 06:26 PM ---------- Previous update was at 06:10 PM ----------

Also,

I am concern with the support. As long as I know, if you install not supported software in Red Hat you lose support from Red Hat.

Have you checked this with Red Hat support? Because losing support from Red Hat...