Project

General

Profile

DebianUbuntu installation by packages » History » Version 1

Romain Vrignaud, 11/17/2011 08:51 AM

1 1 Romain Vrignaud
h1. DebianUbuntu installation by packages
2 1 Romain Vrignaud
3 1 Romain Vrignaud
4 1 Romain Vrignaud
5 1 Romain Vrignaud
The Foreman packages should work on the following Debian-based Linux distributions:
6 1 Romain Vrignaud
7 1 Romain Vrignaud
* Debian Linux 5.0 (Lenny), see [[Installation_instructions#Debian-Linux-50-Lenny]]
8 1 Romain Vrignaud
* Debian Linux 6.0 (Squeeze)
9 1 Romain Vrignaud
* Ubuntu Linux 10.04 LTS (Lucid Lynx)
10 1 Romain Vrignaud
* Ubuntu Linux 10.10 (Maverick Meerkat)
11 1 Romain Vrignaud
* Ubuntu Linux 11.04 (Natty Narwhal)
12 1 Romain Vrignaud
13 1 Romain Vrignaud
If you encounter any errors during the installation, please file a bug report!
14 1 Romain Vrignaud
15 1 Romain Vrignaud
16 1 Romain Vrignaud
Add one of the following lines to your @/etc/apt/sources.list@ (alternatively in a separate file in @/etc/apt/sources.list.d/foreman.list@):
17 1 Romain Vrignaud
18 1 Romain Vrignaud
<pre>
19 1 Romain Vrignaud
# Stable packages
20 1 Romain Vrignaud
deb http://deb.theforeman.org/ stable main
21 1 Romain Vrignaud
22 1 Romain Vrignaud
# Testing packages
23 1 Romain Vrignaud
deb http://deb.theforeman.org/ testing main
24 1 Romain Vrignaud
25 1 Romain Vrignaud
# Nightly builds. Beware: HERE BE DRAGONS
26 1 Romain Vrignaud
deb http://deb.theforeman.org/ nightly main
27 1 Romain Vrignaud
</pre>
28 1 Romain Vrignaud
29 1 Romain Vrignaud
The public key for "secure APT":http://wiki.debian.org/SecureApt can be downloaded "here":http://deb.theforeman.org/foreman.asc
30 1 Romain Vrignaud
31 1 Romain Vrignaud
You can add this key with
32 1 Romain Vrignaud
<pre>
33 1 Romain Vrignaud
apt-key add foreman.asc
34 1 Romain Vrignaud
</pre>
35 1 Romain Vrignaud
36 1 Romain Vrignaud
or combine downloading and registering:
37 1 Romain Vrignaud
<pre>
38 1 Romain Vrignaud
wget -q http://deb.theforeman.org/foreman.asc -O- | apt-key add -
39 1 Romain Vrignaud
</pre>
40 1 Romain Vrignaud
41 1 Romain Vrignaud
The key fingerprint is
42 1 Romain Vrignaud
<pre>
43 1 Romain Vrignaud
1DCB 15D1 2CA1 40EE F494  7E57 66CF 053F E775 FF07
44 1 Romain Vrignaud
Foreman Archive Signing Key <packages@theforeman.org>
45 1 Romain Vrignaud
</pre>
46 1 Romain Vrignaud
47 1 Romain Vrignaud
To install Foreman, run
48 1 Romain Vrignaud
49 1 Romain Vrignaud
<pre>
50 1 Romain Vrignaud
sudo apt-get update
51 1 Romain Vrignaud
52 1 Romain Vrignaud
# Depending on the database you want to use with Foreman,
53 1 Romain Vrignaud
# install one of these meta-packages:
54 1 Romain Vrignaud
sudo apt-get install foreman-mysql
55 1 Romain Vrignaud
sudo apt-get install foreman-pgsql
56 1 Romain Vrignaud
sudo apt-get install foreman-sqlite3
57 1 Romain Vrignaud
58 1 Romain Vrignaud
# or install the foreman main package and configure the
59 1 Romain Vrignaud
# database manually in /etc/foreman/database.yml
60 1 Romain Vrignaud
sudo apt-get install foreman
61 1 Romain Vrignaud
</pre>
62 1 Romain Vrignaud
63 1 Romain Vrignaud
The only purpose of the meta-packages @foreman-mysql@, @foreman-pgsql@, and @foreman-sqlite3@ is to pull in any dependencies on the respective database system during the package installation. If you don't want to run the Foreman database on the same host, please use the @foreman@ package and configure the database settings in @/etc/foreman/database.yml@. You cannot use @dbconfig-common@ in this case.
64 1 Romain Vrignaud
65 1 Romain Vrignaud
66 1 Romain Vrignaud
h3. Debian Linux 5.0 (Lenny)
67 1 Romain Vrignaud
68 1 Romain Vrignaud
Users of Debian Lenny will have to install "rake":http://packages.debian.org/lenny-backports/rake and "libsinatra-ruby":http://packages.debian.org/lenny-backports/libsinatra-ruby from @lenny-backports@.
69 1 Romain Vrignaud
70 1 Romain Vrignaud
See http://backports.debian.org/Instructions/ for instructions on how to add @lenny-backports@ to your list of repositories and install a package from it.