Difference between revisions of "Best Practices for executing Package Updates"

(Update the Zimbra Packages list)
Line 26: Line 26:
* ldap
* ldap
* zmconfigd
* zmconfigd
===Services that need to be stopped before the upgrade===
{| class="wikitable"
| amavis
| antispam
| antivirus
| convertd
| dnscache
| logger
| mailbox
| memcached
| mta
| opendkim
| proxy
| service webapp
| snmp
| spell
| stats
| zimbra webapp
| zimbraAdmin webapp
| zimlet webapp
====Stop the components using CLI====
====Stop the components using CLI====
You can find handy to have this CLI commands to stop the services before run the upgrade, please note that you might not have some of this services, depending on which services you have in each Zimbra node:
Before run the Zimbra upgrade for third party packaging, stop the Zimbra Services and once finished, please start the '''ldap''' and '''zmconfigd''' service like this:
  zmamavisdctl stop
  zmcontrol stop
zmantispamctl stop
  ldap start
zmantivirusctl stop
  zmconfigdctl start
zmconvertctl stop
zmdnscachectl stop
zmloggerctl stop
zmmailboxdctl stop
zmmemcachedctl stop
  zmmtactl stop
  zmopendkimctl stop
zmproxyctl stop
zmspellctl stop
zmstatctl stop
zmstorectl stop
==Run the Zimbra Package upgrade==
==Run the Zimbra Package upgrade==

Latest revision as of 17:09, 31 October 2016

Best Practices for executing Package Updates

   KB 22865        Last updated on 2016-10-31  

(0 votes)

Starting in Zimbra Collaboration 8.7, Zimbra uses repositories for 3rd party packages, in the first step towards having the whole product fully installable from repositories.


Update the Zimbra Packages list

First step to follow before run a package update on Zimbra Collaboration, using the third package repository, is to run apt-get or yum update on the server, as this can take some minutes, as root:

* Note, we recommend to run all the next commands in a screen session, just run the command screen, and start working from there


apt-get update

Red Hat/CentOS

yum update

Stopping the components before run the Zimbra Package upgrade

Before run the upgrade on the Zimbra Serverm it's really important that the next components are in stop mode, depending on the type of Zimbra Node (LDAP, MTA, Proxy or Mailbox), you should stop some services:

Services that need to keep running during the upgrade

It's really important to keep the ldap and zmconfigd packages up during the upgrade process:

  • ldap
  • zmconfigd

Stop the components using CLI

Before run the Zimbra upgrade for third party packaging, stop the Zimbra Services and once finished, please start the ldap and zmconfigd service like this:

zmcontrol stop
ldap start
zmconfigdctl start

Run the Zimbra Package upgrade

Once the services are properly stopped, you can run the upgrade on the server, as this can take some minutes, as root:


apt-get dist-upgrade

Red Hat/CentOS

yum upgrade

Starting the components after run the Zimbra Package upgrade

After run the upgrade process, the best command to restart all the services on the Zimbra node is:

zmcontrol restart

So you will restart all the services with just one command.

Additonal Content

Identified Support Issues

  • No Support issues reported yet.
Verified Against: Zimbra Collaboration Suite 8.7 Date Created: 02/08/2016
Article ID: https://wiki.zimbra.com/index.php?title=Best_Practices_for_executing_Package_Updates Date Modified: 2016-10-31

Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Wiki/KB reviewed by Jorge SME2 Copyeditor Last edit by Jorge de la Cruz
Jump to: navigation, search