summaryrefslogtreecommitdiffstats
path: root/doc/installation/distributions.txt
blob: 306439485f43e05d1750145dd9c10a5a36638abb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
.. -*- mode: rst -*-
.. vim: ft=rst

.. _distributions:

===========================
Distribution-specific notes
===========================

The installation of Bcfg2 on a specific distribution depends on the
package management tool and the availability of the package in the
distribution's repository.

Alpine Linux
============

Packages for `Alpine Linux`_ are available in the `testing`_ repository.
Just use `apk` to perform the installation ::

   apk add bcfg2 bcfg2-server -U -X http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted

.. _Alpine Linux: http://www.alpinelinux.org/
.. _testing: http://git.alpinelinux.org/cgit/aports/tree/testing/bcfg2

ArchLinux
=========

Packages for `Arch Linux`_ are available in the Arch User Repository (AUR_).
Just use `pacman` to perform the installation ::

   pacman -S bcfg2 bcfg2-server

.. _Arch Linux: http://www.archlinux.org/
.. _AUR: http://aur.archlinux.org/packages.php?ID=20979

Debian
======

Packages of Bcfg2 are available for Debian Lenny, Debian Squeeze, and
Debian Sid. The fastest way to get Bcfg2 onto your Debian system
is to use ``apt-get`` or ``aptitude``. ::

   sudo aptitude install bcfg2 bcfg2-server

If you want to use unofficial packages from Bcfg2 see the instructions
at `CustomDebianRepository`_.

.. _CustomDebianRepository: http://trac.mcs.anl.gov/projects/bcfg2/wiki/PrecompiledPackages#UnofficialDebianRepository

Fedora
======

The fastest way to get Bcfg2 packages onto your Fedora_ system is to
use `yum` or PackageKit. Yum will pull in all dependencies of Bcfg2
automatically. ::

    su -c 'yum install bcfg2-server bcfg2'

Be aware that the latest release of Bcfg2 may only be available for the
Development release of Fedora (Rawhide).  With the activation of the
Rawhide repository of Fedora you will be able to install it. ::

    su -c 'yum install --enablerepo=rawhide bcfg2-server bcfg2'

This way is not recommended on production systems. Only for testing.

Gentoo
======

Bcfg2 can be installed via portage.

OS X
====

Bcfg2 can be installed either via MacPorts or by creating a native OS X
package.

MacPorts
--------

Once macports is installed::

    port install bcfg2

Using native OS X python
------------------------

First, make sure you have Xcode installed as you need ``packagemaker`` which
comes bundled in the Developer tools.

Clone the git source::

    git clone git://git.mcs.anl.gov/bcfg2.git

Change to the osx directory and type make. Your new package should be
located at ``bcfg2-$VERSION.pkg`` (where ``$VERSION`` is that which is
specified in ``setup.py``).

RHEL / Centos / Scientific Linux
================================

While you can go about building all these things from source, this
section will try and meet the dependencies using packages from EPEL_
[#f1]_. The *el5* and the *el6* package should be compatible
with `CentOS`_ 5.x/6.x and `Scientific Linux`_.

EPEL_ for 5.x::

    [root@centos ~]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

EPEL_ for 6.x::

    [root@centos ~]# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm

Install the bcfg2-server and bcfg2 RPMs::

    [root@centos ~]# yum install bcfg2-server bcfg2

.. note::

    The latest package for *el5* is only available in the testing repository.

.. [#f1] For more details check the EPEL_ `instructions <http://fedoraproject.org/wiki/EPEL/FAQ#howtouse>`_

.. _CentOS: http://www.centos.org/
.. _Scientific Linux: http://www.scientificlinux.org/
.. _EPEL: http://fedoraproject.org/wiki/EPEL

Ubuntu
======

We highly recommend following the instructions at `ubuntu-installation`_
in order to install a recent version of Bcfg2 on your system. However,
if you would like to install the older package, you can use the following
command::

   sudo aptitude install bcfg2 bcfg2-server

.. _ubuntu-installation: http://trac.mcs.anl.gov/projects/bcfg2/wiki/PrecompiledPackages#UbuntuLaunchpadBcfg2PPA