Installing From Source

Cobbler is licensed under the General Public License (GPL), version 2 or later. You can download it, free of charge, using the links below.

Latest Source

The latest source code (it's all Python) is available through git.

Getting the Code

Clone the repo using git:

$ git clone git://github.com/cobbler/cobbler.git

or

$ git clone https://github.com/cobbler/cobbler.git

$ cd cobbler $ git checkout release24

Note: The release24 branch corresponds to the official release version for the 2.4.x series. The master branch is the development series, and always uses an odd number for the minor version (for example, 2.5.0).

Installing

When building from source, make sure you have the correct Prerequisites for Installation. Once they are, you can install cobbler with the following command:

$ make install

This command will rewrite all configuration files on your system if you have an existing installation of Cobbler (whether it was installed via packages or from an older source tree). To preserve your existing configuration files, snippets and kickstarts, run this command:

$ make devinstall

To install the Cobbler web GUI, use this command:

$ make webtest

Note: This will do a full install, not just the web GUI. "make webtest" is a wrapper around "make devinstall", so your configuration files will also be saved when running this command.

Building Packages from Source

It is also possible to build packages from the source file. Right now, only RPMs are supported, however we plan to add support for building .deb files in the future as well.

To build RPMs from source, use this command:

$ make rpms
... (lots of output) ...
Wrote: /path/to/cobbler/rpm-build/cobbler-2.4.0-1.fc17.src.rpm
Wrote: /path/to/cobbler/rpm-build/cobbler-2.4.0-1.fc17.noarch.rpm
Wrote: /path/to/cobbler/rpm-build/koan-2.4.0-1.fc17.noarch.rpm
Wrote: /path/to/cobbler/rpm-build/cobbler-web-2.4.0-1.fc17.noarch.rpm

As you can see, an RPM is output for each component of cobbler, as well as a source RPM. This command was run on a system running Fedora 17, thus the fc17 in the RPM name - this will be different based on the distribution you're running.


comments powered by Disqus