Downloads

There are several ways to obtain ruby-libvirt.

Distribution packages

Most Linux distributions, as well as some of the BSDs, include a package for ruby-libvirt in their repositories. If your operating system is among those, that's probably the easiest way to obtain ruby-libvirt.

RubyGems.org

ruby-libvirt is also available from RubyGems.org. To install it from there, simply run:

$ gem install ruby-libvirt

Release archives

The latest released version of the ruby-libvirt bindings can be downloaded from the libvirt.org HTTP server.

Git source repository

The ruby-libvirt source code is maintained in a git repository available on GitLab. To obtain a copy, run:

$ git clone https://gitlab.com/libvirt/libvirt-ruby.git

Compiling

If you're building from source (this includes installing from RubyGems.org) then you need to have the development packages for both Ruby and libvirt installed, as well as the rake tool. On a Fedora system, run:

$ yum install libvirt-devel ruby-devel rubygem-rake

to install all these requirements. Once they are available, building ruby-libvirt is as simple as running:

$ rake build

Release notes

A list of changes between releases is available in the NEWS.rst file.