---
name: "dh_vagrant_plugin"
section: "1"
platform: "linux"
package: "vagrant"
version: "2.3.7+git20230731.5fc64cde+dfsg-3+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dh_vagrant_plugin"
---

# dh\_vagrant\_plugin(1)

packaging helper for vagrant plugins

## NAME

dh\_vagrant\_plugin - packaging helper for vagrant plugins

## SYNOPSIS

**gem2deb-test-runner** \[*PACKAGE-NAME*\]

## DESCRIPTION

**dh\_vagrant\_plugin** installs the necessary metadata for vagrant to recognize plugins installed by Debian packages. To use it, you need to 1) make sure the package Ruby code is installed as in any other Ruby package, and 2) call **dh\_vagrant\_plugin** at the install phase of your package.

If *PACKAGE-NAME* is omitted, it will be taken from the first line in the output of **dh\_list\_packages**(1).

A sample debian/rules that should just work is as follows:

```
  #!/usr/bin/make -f
  export DH_RUBY = --gem-install
  %:
        dh $@ --buildsystem=ruby --with ruby
  override_dh_auto_install:
        dh_auto_install
        dh_vagrant_plugin
```

## SEE ALSO

[**vagrant**(1)](/vagrant/1.md), **dh\_list\_packages**(1). EOF
