From 1352d26fad20499570925a2f44ca1bedd6c0ab15 Mon Sep 17 00:00:00 2001
From: Mark Craig <mark.craig@forgerock.com>
Date: Mon, 03 Jun 2013 09:53:27 +0000
Subject: [PATCH] CR-1783 Fix for OPENDJ-910: Document new native packaging

---
 opendj3/src/main/docbkx/install-guide/chap-uninstall.xml |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/opendj3/src/main/docbkx/install-guide/chap-uninstall.xml b/opendj3/src/main/docbkx/install-guide/chap-uninstall.xml
index f070f6b..cae8921 100644
--- a/opendj3/src/main/docbkx/install-guide/chap-uninstall.xml
+++ b/opendj3/src/main/docbkx/install-guide/chap-uninstall.xml
@@ -116,4 +116,61 @@
    <screen>$ rm -rf /path/to/opendj</screen>
   </step>
  </procedure>
+
+ <procedure xml:id="uninstall-deb">
+  <title>To Uninstall the Debian Package</title>
+  <indexterm><primary>Debian (.deb) package</primary></indexterm>
+
+  <para>When you uninstall the Debian package from the command line, OpenDJ
+  directory server is stopped if it is running.</para>
+
+  <step>
+   <para>Remove the package from your system.</para>
+
+   <screen>$ sudo dpkg -r opendj
+(Reading database ... 185725 files and directories currently installed.)
+Removing opendj ...
+*Stopping OpenDJ server...
+Stopping Server...
+[03/Jun/2013:10:00:49 +0200] category=BACKEND severity=NOTICE
+ msgID=9896306 msg=The backend userRoot is now taken offline
+[03/Jun/2013:10:00:49 +0200] category=CORE severity=NOTICE
+ msgID=458955 msg=The Directory Server is now stopped
+
+*OpenDJ successfully removed
+
+$ </screen>
+
+   <para>Removing the package does not remove your data or configuration.
+    You must remove <filename>/opt/opendj</filename> manually to get rid of
+    all files.</para>
+  </step>
+ </procedure>
+
+ <procedure xml:id="uninstall-rpm">
+  <title>To Uninstall the RPM Package</title>
+  <indexterm><primary>Red Hat (.rpm) package</primary></indexterm>
+
+  <para>When you uninstall the RPM package from the command line, OpenDJ
+  directory server is stopped if it is running.</para>
+
+  <step>
+   <para>Remove the package from your system.</para>
+
+   <screen># rpm -e opendj-<?eval ${docTargetVersion}?>.noarch.rpm
+Pre Uninstall - uninstall
+Stopping Server...
+[03/Jun/2013:10:42:46 +0200] category=BACKEND severity=NOTICE
+ msgID=9896306 msg=The backend userRoot is now taken offline
+[03/Jun/2013:10:42:46 +0200] category=CORE severity=NOTICE
+ msgID=458955 msg=The Directory Server is now stopped
+Post Uninstall - uninstall
+OpenDJ successfully removed.
+# </screen>
+
+   <para>Removing the package does not remove your data or configuration.
+   You must remove <filename>/opt/opendj</filename> manually to get rid of
+   all files.</para>
+  </step>
+ </procedure>
 </chapter>

--
Gitblit v1.10.0