You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Louis van Belle 5d306224de
2 months ago Update 2 months ago Bump version to 3.0.1 2 months ago


Scripts for Kopano. This script pull the community files for your OS and setup a repo so you can use apt-get to install.

Currently tested on Debian 10 but should work for Debian 8-9 and Ubuntu 16/18/20 .04 (LTS editions) also.
This eliminates the use of dpkg -i *.deb on kopano-community files.

It sets up a local file repo, which is easy to adapt for a webserver repo, examples are provided in the files.
Do note, verify if you happy with the default script settings.

For the quick and unpatient, keep the defaults and run:

wget -O - | bash
apt install kopano-server-packages

And too see the new versions, you can use the following command:

apt-cache policy kopano-server-packages kopano-webapp z-push-kopano

Note, when you are upgrading and you might see packages are "kept back" and this is why.

Kopano is fast moving at the moment, sometimes new packages are added or older removed,
when you just run apt update, in these cases you must use apt dist-upgrade --autoremove.
So make sure you always check for "kept back" packages.
The --autoremove is very handy with the upgrades, for example.
libgsoap-kopano-x.y.z. this one of often upgraded but the older version is not autoremoved.
which results in possible, strange things within Kopano, autoremove removed the older version
while upgradeing.

But there are also packages which might not be removed when upgrading and to make this all work,
you might want to at these options --autoremove --purge, so you can run : `apt dist-upgrade --autoremove --purge`
This removed obsolete files and installes the kept back packages in one go.

The script and the default settings in it, will do following for you:

  • create a folder $BASE_FOLDER defaults to : /srv/repo/kopano, you can adjust the path in the script if you like.
    ! Do note, if you change it after you have run it, you need to adjust the /etc/apt/sources.list.d/*.list files also.
  • create a subfolder amd64/i386, this is the folder where the "$ARCH"/*.deb files will be placed.
  • pulls the files from the Kopano community site.
    i've set as default : KOPANO_COMMUNITY_PKG="core archiver files mdm smime webapp migration-pst"
  • makes a backup of the previous version to $REPO_BASE/repo/kopano/ARCH-Date
  • cleanup leftovers.
  • add z-push repo ( /etc/apt/sources.list.d/kopano-z-push.list )
  • setup the local-file repo ( /etc/apt/sources.list.d/kopano-community.list )
    the repo example file:
    • File setup for Kopano Community: deb [trusted=yes] file:/$BASE_FOLDER/kopano/ amd64/
    • Webserver setup for Kopano Community: deb [trusted=yes] http://localhost/kopano/ amd64/
      To enable the webserver, install a webserver ( apache/nginx )
      Now symlink /$BASE_FOLDER/kopano/ to /var/www/html/kopano
      And dont forget to change localhost to you hostname of ip of you server.


If you like my work, support me a bit, even with 1 $ you are helping me.
I dont ask for hunderds, a (few) buck(s) is/are a great gift also.

  • Donate via Paypal (my paypal email is louis at van-belle .nl)
  • Donate via Bitcoin: 3BMEXFUrncjVKByryNU1fcVLBLKE8i9TpX


@Christian Knittl-Frank for fixes so far. (
@fbartels (@Kopano) for helping out. (