Find out what version of Zimbra you are running

Find out what version of Zimbra you are running

Knowing the exact Zimbra release matters before an upgrade, a migration, or when you look up a bug or patch. Here’s the two ways that seem to be the most common ways to find the present zimbra version: asking the running server with zmcontrol, or reading the install history file, which also works on a backup.

Prerequisites

  • Shell access to the Zimbra server as root, or a copy of its /opt/zimbra directory.

Method 1: zmcontrol -v

Login as root

Root shell prompt on the Zimbra server

Zimbra’s tools are meant to be run as the zimbra user, which has the right environment and PATH set up, so switch to it:

su - zimbra
su - zimbra typed at the root prompt to switch to the zimbra user

from here run zmcontrol -v

zmcontrol -v
su - zimbra command, the step before running zmcontrol -v

in this case, it looks as though we have 8.0.6_GA on a Redhat/CentOS system, running the Free/Open Source edition.

zmcontrol -v showing Release 8.0.6_GA_5922 RHEL6_64 FOSS edition

The output is read like this: 8.0.6_GA is the release, 5922 the build number, RHEL6_64 the platform the package was built for, and the last word is the edition. FOSS means the free Open Source edition, while NETWORK means the commercial Network Edition.

Method 2: the install history file

if all you have is a backup, you can look at the following file:

cat /opt/zimbra/.install_history | tail
cat /opt/zimbra/.install_history | tail to read the install history

this should show you something like the following:

cat /opt/zimbra/.install_history | tail command used on a backup copy of /opt/zimbra

The file records each package installed or upgraded, with a timestamp, so the last lines show the most recent version.

This shows the 8.0.6_GA, but does not really say if it’s the network edition or OpenSource.

Troubleshooting

  • zmcontrol: command not found: you are still root, or you used su zimbra without the dash. Use su - zimbra so the zimbra user’s environment is loaded.
  • Edition unclear from a backup: look at the package names in the history; Network Edition installs include packages that the Open Source edition does not.

Newer releases

On Zimbra 9 and 10, zmcontrol -v works the same way. You can also ask the package manager, for example rpm -qa | grep zimbra on RHEL-family systems or dpkg -l | grep zimbra on Ubuntu. If you are checking the version before moving servers, see Migrate Zimbra Community to New Server.

That’s it!

Hosted Linux servers at www.zwiegnet.com/go

Related guides: Upgrade Zimbra Community Version CentOS 6 | Get member of Zimbra Distribution group command line

Leave a Reply

Your email address will not be published. Required fields are marked *