UnInstalling Zimbra on Linux: Difference between revisions
No edit summary |
No edit summary |
||
(35 intermediate revisions by 14 users not shown) | |||
Line 1: | Line 1: | ||
{{BC|Community Sandbox}} | |||
__FORCETOC__ | |||
<div class="col-md-12 ibox-content"> | |||
=Uninstall Zimbra on Linux= | |||
{{KB|{{Unsupported}}|{{ZCS 7.0}}|{{ZCS 6.0}}|}} | |||
{{Archive}}{{WIP}} | |||
=For Mac see the [[Uninstalling_Zimbra_on_Mac_OS_X_(Tiger)|Mac OS X uninstall guide]] | |||
1) Run the commands: | == Uninstall Directions for Linux/All Other Operating Systems == | ||
'''su – | As root:<br> | ||
zmcontrol stop<br> | 1) Run the commands:<br> | ||
exit | '''su – zimbra<br>''' | ||
<br> | '''zmcontrol stop<br>''' | ||
'''exit'''<br> | |||
(you should be root after you run exit)<br> | (you should be root after you run exit)<br> | ||
<br> | <br> | ||
Line 11: | Line 18: | ||
If you see running processes<br> | If you see running processes<br> | ||
2b) Kill any lingering processes: '''kill -9 <pid>'''<br> | 2b) Kill any lingering processes: '''kill -9 <pid>'''<br> | ||
<br> | |||
3a) Run the command: '''df'''<br> | 3a) Run the command: '''df'''<br> | ||
If you see "amavisd"<br> | If you see "amavisd"<br> | ||
3b) run command: '''umount /opt/zimbra/amavisd<-new-blah>/tmp'''<br> | |||
<br> | |||
4) '''cd /<tmp_tar_install_dir>/zcs/'''<br><br> | |||
5) Run the command: '''./install.sh -u'''<br><br> | |||
6) Run the following commands to complete the unistall:<br> | |||
'''rm -rf /opt/zimbra'''<br> | |||
'''rm -rf /var/log/*zimbra*'''<br> | |||
'''rm -rf /tmp/*zimbra*'''<br> | |||
'''rm -rf /tmp/hsperfdata*<br> | |||
'''rm -rf /tmp/install.*<br>''' | |||
'''rm -rf /tmp/*swatch*<br>''' | |||
'''rm -rf /tmp/log*<br>''' | |||
Ensure that you removed ALL the files owned by the user zimbra AND that contain the name "zimbra" in:<br> | |||
/var/log/<br> | /var/log/<br> | ||
/tmp/<br> | /tmp/<br> | ||
<br> | <br> | ||
9) Remove | 7) Run the following commands to delete the users and groups:<br> | ||
'''userdel zimbra<br>''' | |||
''' | '''userdel postfix<br>''' | ||
'''groupdel zimbra<br>''' | |||
'''groupdel postfix<br>''' | |||
<br> | |||
8) Remove the line "/dev/shm /opt/zimbra/amavisd-new-2.4.1/tmp tmpfs defaults,users,size=150m,mode=777 0 0" from /etc/fstab.<br> | |||
<br> | |||
9) Remove the Zimbra logging lines below from /etc/syslog.conf:<br> | |||
'''local0.* -/var/log/zimbra.log<br>''' | |||
'''auth.* -/var/log/zimbra.log<br>''' | |||
'''mail.* -/var/log/zimbra.log<br>''' | |||
<br> | |||
10) Remove logrotate config file for Zimbra (CentOS, RHEL)<br> | |||
'''rm -f /etc/logrotate.d/zimbra'''<br> | |||
<br> | |||
11) Remove the Zimbra lines below from /etc/prelink.conf (CentOS, RHEL)<br> | |||
'''# added for Zimbra'''<br> | |||
'''-l /opt/zimbra/lib'''<br> | |||
'''-l /opt/zimbra/sleepycat/lib'''<br> | |||
'''-l /opt/zimbra/openldap/lib'''<br> | |||
'''-l /opt/zimbra/cyrus-sasl/lib'''<br> | |||
'''-l /opt/zimbra/mysql/lib'''<br> | |||
<br> | |||
12) Remove Zimbra entries in /etc/rc* (CentOS, RHEL)<br> | |||
'''chkconfig --del zimbra'''<br> | |||
<br> | |||
----------- | |||
Other methods:(assuming you didn't already try the above) <br> | |||
(dijichi2) if you get stuck and really want to just purge it from the system, try:<br> | |||
'''rpm -e `rpm -qa |grep zimbra`<br>''' | |||
'''rm -rf /opt/zimbra<br>''' | |||
'''delete zimbra entries from /etc/sudoers<br>''' | |||
'''delete zimbra entries from root and zimbra crontabs<br>''' | |||
----------- | |||
On Ubuntu servers dpkg may think that Zimbra is still installed. Check by running dpkg --list (-l) | |||
or dpkg -q zimbra* | |||
and see if zimbra items are still listed. You can remove them by running:<br> | |||
'''dpkg --remove zimbra-apache zimbra-ldap zimbra-mta zimbra-spell zimbra-core zimbra-logger zimbra-snmp zimbra-store''' | |||
or | |||
<pre>sudo rm -r /opt/zimbra</pre> | |||
{{Article Footer|unknown|6/15/2006}} | |||
[[Category:Installation]] | |||
[[Category:Linux]] |
Latest revision as of 11:15, 13 July 2015
Uninstall Zimbra on Linux
=For Mac see the Mac OS X uninstall guide
Uninstall Directions for Linux/All Other Operating Systems
As root:
1) Run the commands:
su – zimbra
zmcontrol stop
exit
(you should be root after you run exit)
2a) Run the command: ps -ef | grep -i zimbra
If you see running processes
2b) Kill any lingering processes: kill -9 <pid>
3a) Run the command: df
If you see "amavisd"
3b) run command: umount /opt/zimbra/amavisd<-new-blah>/tmp
4) cd /<tmp_tar_install_dir>/zcs/
5) Run the command: ./install.sh -u
6) Run the following commands to complete the unistall:
rm -rf /opt/zimbra
rm -rf /var/log/*zimbra*
rm -rf /tmp/*zimbra*
rm -rf /tmp/hsperfdata*
rm -rf /tmp/install.*
rm -rf /tmp/*swatch*
rm -rf /tmp/log*
Ensure that you removed ALL the files owned by the user zimbra AND that contain the name "zimbra" in:
/var/log/
/tmp/
7) Run the following commands to delete the users and groups:
userdel zimbra
userdel postfix
groupdel zimbra
groupdel postfix
8) Remove the line "/dev/shm /opt/zimbra/amavisd-new-2.4.1/tmp tmpfs defaults,users,size=150m,mode=777 0 0" from /etc/fstab.
9) Remove the Zimbra logging lines below from /etc/syslog.conf:
local0.* -/var/log/zimbra.log
auth.* -/var/log/zimbra.log
mail.* -/var/log/zimbra.log
10) Remove logrotate config file for Zimbra (CentOS, RHEL)
rm -f /etc/logrotate.d/zimbra
11) Remove the Zimbra lines below from /etc/prelink.conf (CentOS, RHEL)
# added for Zimbra
-l /opt/zimbra/lib
-l /opt/zimbra/sleepycat/lib
-l /opt/zimbra/openldap/lib
-l /opt/zimbra/cyrus-sasl/lib
-l /opt/zimbra/mysql/lib
12) Remove Zimbra entries in /etc/rc* (CentOS, RHEL)
chkconfig --del zimbra
Other methods:(assuming you didn't already try the above)
(dijichi2) if you get stuck and really want to just purge it from the system, try:
rpm -e `rpm -qa |grep zimbra`
rm -rf /opt/zimbra
delete zimbra entries from /etc/sudoers
delete zimbra entries from root and zimbra crontabs
On Ubuntu servers dpkg may think that Zimbra is still installed. Check by running dpkg --list (-l)
or dpkg -q zimbra*
and see if zimbra items are still listed. You can remove them by running:
dpkg --remove zimbra-apache zimbra-ldap zimbra-mta zimbra-spell zimbra-core zimbra-logger zimbra-snmp zimbra-store
or
sudo rm -r /opt/zimbra