---
name: "dh_installzopeinstance"
section: "1"
platform: "linux"
package: "zope-debhelper"
version: "0.3.16"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/dh_installzopeinstance"
---

# dh\_installzopeinstance(1)

install a zope instance into package build directories

## NAME

dh\_installzopeinstance - install a zope instance into package build directories

## SYNOPSIS

**dh\_installzopeinstance** \[*debhelper options*\] \[**-n**\] \[*instance name*\]

## DESCRIPTION

dh\_installzopeinstance is a debhelper program that is responsible for installing zope instances into package build directories.

The argument is interpreted as zope instance and will be created within the  first package dh\_installzopeinstance is told to act on. By default, this is the first binary package in debian/control, but if you use **-p**, **-i**, or **-a** flags, it will be the first package specified by those flags.

dh\_installzopeinstance automatically install debian/dzinstance if it exists.  If dh\_installzopeinstance is acting on multiple packages, debian/dzinstance file will  be installed into the first package. Use debian/package.dzinstance for  different binary packages.

The substitution variable zope:Depends is replaced by a list of the available zope versions.

## OPTIONS

- **-n**, **--noscripts**

  Do not modify postinst/prerm scripts.

- *instance name*

  This parameter will be considered as an instance name which will  be installed into the first package acted on.

## EXAMPLES

This is an example of a debian/package.dzinstance file:

```
  Package: plone-site
  ZopeVersion: 2.9
  Name: plone-site
  Addon-Mode: manual
  Addon-Technique: tree-linked
  Restart-Policy: end
  Products: CMFPlone
  Skeleton: /usr/lib/zope2.9/skel-with-magic
```

The Products field specify a list of comma separated products that will be automatically installed into the instance. Obviously, it has no sense if the Addon-Mode field contains 'all'. The optional Skeleton field specifies a path which is used as skeleton for the new zope instance.

## NOTES

Note that this command is not idempotent. "dh\_clean **-k**" should be called between invocations of this command. Otherwise, it may cause multiple instances of the same text to be added to maintainer scripts.

## SEE ALSO

[*debhelper*(7)](/debhelper/7.md)

This program is a part of zope-debhelper.

## AUTHOR

Fabio Tranchitella \<kobold@debian.org\> Bernd Zeimetz \<bernd@bzed.de\>
