Uninstall instructions

From Wiki

(Difference between revisions)
Jump to: navigation, search
 
Line 12: Line 12:
#for i in `/usr/local/1h/bin/get_installed.sh | grep -v 'is not installed' | awk '{print $1}'`; do echo -n "$i "; done && echo
#for i in `/usr/local/1h/bin/get_installed.sh | grep -v 'is not installed' | awk '{print $1}'`; do echo -n "$i "; done && echo
#yum remove <the list generated by the previous command>  
#yum remove <the list generated by the previous command>  
-
#rm -rf /var/log/1h* /usr/local/1h/ /home/1h/ /var/cache/yum/1h/  
+
#rm -rf /var/log/1h* /usr/local/1h/ /home/1h/ /var/cache/yum/1h/ /chroot
#userdel 1h  
#userdel 1h  
#Remove Include "/usr/local/apache/conf/includes/1h.conf" from Apache config and delete the file itself.
#Remove Include "/usr/local/apache/conf/includes/1h.conf" from Apache config and delete the file itself.
Line 23: Line 23:
#Get list of all installed 1h packages  
#Get list of all installed 1h packages  
#Use yum to remove all installed 1h packages  
#Use yum to remove all installed 1h packages  
-
#Remove 1h log file(s), 1h software files, 1h home dir and the 1h repository cache (just in case so that it does not interfere with future installs/upgrades)  
+
#Remove 1h log file(s), 1h software files, 1h home dir, the 1h repository cache and the chroot folder(just in case so that it does not interfere with future installs/upgrades)  
#Remove 1h user  
#Remove 1h user  
#Remove the 1h webserver configuration file and the include from the global conf.
#Remove the 1h webserver configuration file and the include from the global conf.
'''IMPORTANT:''' Note that if you want to remove Hive due to problems on your server after Hive installation, it is actually NOT necessary to completely uninstall the software. You can simply disable the mod_hive module in your Apache configuration or any of the Hive components as explained [[Hive_Configuration#mod_hive_configuration|here]].
'''IMPORTANT:''' Note that if you want to remove Hive due to problems on your server after Hive installation, it is actually NOT necessary to completely uninstall the software. You can simply disable the mod_hive module in your Apache configuration or any of the Hive components as explained [[Hive_Configuration#mod_hive_configuration|here]].

Latest revision as of 19:37, 21 July 2013

Question

How to uninstall 1H products from my server?

Answer

You can remove any product installed on your server via the 1H WHM plugin - Uninstall button right next to the product name. Note that this will only remove the respective product and all packages associated with it.

If you want to completely remove all 1H products, including additional packages and the local interface itself, you should follow the instructions below:

  1. rpm -e --nodeps crond
  2. yum remove 1h-repository
  3. yum install vixie-cron
  4. for i in `/usr/local/1h/bin/get_installed.sh | grep -v 'is not installed' | awk '{print $1}'`; do echo -n "$i "; done && echo
  5. yum remove <the list generated by the previous command>
  6. rm -rf /var/log/1h* /usr/local/1h/ /home/1h/ /var/cache/yum/1h/ /chroot
  7. userdel 1h
  8. Remove Include "/usr/local/apache/conf/includes/1h.conf" from Apache config and delete the file itself.

What this will do:

  1. Remove the modified crond we install without touching any dependencies
  2. Remove the 1h-repository so that we can install standard cron
  3. Install a default crond via yum
  4. Get list of all installed 1h packages
  5. Use yum to remove all installed 1h packages
  6. Remove 1h log file(s), 1h software files, 1h home dir, the 1h repository cache and the chroot folder(just in case so that it does not interfere with future installs/upgrades)
  7. Remove 1h user
  8. Remove the 1h webserver configuration file and the include from the global conf.

IMPORTANT: Note that if you want to remove Hive due to problems on your server after Hive installation, it is actually NOT necessary to completely uninstall the software. You can simply disable the mod_hive module in your Apache configuration or any of the Hive components as explained here.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox