How do I manually remove CA Directory r8.1 on Linux platforms?

Document ID : KB000054669
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

Sometimes an uninstall of CA Directory fails and you are left with an incomplete install. In some cases this prevents the uninstall scripts from working and the only way to fix this problem is to manually remove the installation.

Solution:

To manually remove the CA Directory installation you need to do the following:

  1. Log in as the dsa user and stop any DSAs that are started. This can be done by executing the command

    "dxserver stop all"

  2. Log in as the Ingres user and stop the ingres services. This can be done by executing the command

    "ingstop".

  3. If you need to back up your databases and have not done so already log in as the DSA user and backup any relevant databases.

  4. You now need to check if there are any rogue processes still running which are associated to the Directory. Execute the three commands

    "ps -ef | grep dxserver"
    "ps -ef |grep dsa"
    "ps -ef |grep ingres".

  5. If there are any processes still running manually kill them.

  6. You can now manually remove the Directory by going to DXHOME (by default this is installed into /opt/CA/eTrustDirectory/dxserver).

  7. Once in that Directory, CD to one level up. In this directory you should see a dxserver folder, and if you installed the web components and documentation you should also see a dxwebserver folder and a documentation folder.

  8. These 3 folders can now be removed by executing the command

    "rm -rf dxserver dxwebserver documentation".

    You can also remove the etrdir_install.log, readme_eTrustDirectory.html, readme and relnotes files.

  9. On Linux systems Ingres is installed using rpm packages. In order to remove these packages they need to be done in a certain order so there are no problems with dependencies. The following rpm commands need to be executed in this order:

    rpm -e ca-ingres-das-EI
    rpm -e ca-ingres-odbc-EI
    rpm -e ca-ingres-jdbc-EI
    rpm -e ca-ingres-net-EI
    rpm -e ca-ingres-dbms-EI
    rpm -e ca-ingres-EI
    rpm -e ca-ingres-documentation

  10. You now need to check if there are any Ingres rpm packages left behind. Execute the command

    "rpm -qa | grep ca-ingres*".

    This should list any CA Ingres rpm packages that are still left on the system.

  11. 11. If there are any rpm packages left behind remove them by running the command

    "rpm -e <rpm package name>"

  12. You now need to clean up any files and folders that have been left behind. CD into the folder defined by II_SYSTEM (this is the Ingres install directory, by default it is at /opt/CA/IngresEI). All the files and folders from here can be removed. Execute the command

    "rm -rf ingres .ingEIbash .ingEItcsh"

  13. Ingres also has a data location where all the database files are kept (by default this is at /local/CA/IngresEI/ingres). CD to that location and you should find the folders ckp, data, dmp, jnl, log and work. All these folders can be manually removed.

  14. You can now remove the DSA and Ingres users by executing the commands

    "userdel dsa"
    "userdel ingres"

  15. You can now remove the DXserver Administrator group by executing the command:

    "groupdel etrdir"

  16. CA Directory requires reboot scripts in order to start up after a reboot of the machine. These reboot scripts can now be removed. CD into /etc/rc.d.

  17. Do a find for *dxserver* and *ingres* by executing

    "find . -name *dxserver*"
    "find . -name *ingres*".

    You can manually remove anything that shows up.

  18. Your installation of CA Directory should now be removed.