1. install OpenDJ package (deb or rpm)
2. remove OpenDJ package
3. check that /opt/opends has been removed
=> the /opt/opends has not been completely removed and contains the following file: /opt/opendj/locks/server.lock
=> in fact this file has been generated by the stop-ds command called in the pre-install script
If the instance is not configured, the pre-install script should not call the stop-ds command.