FreeBSD/poudriere.md

Fri, 25 Aug 2017 15:36:59 +0200

author
David Demelier <markand@malikania.fr>
date
Fri, 25 Aug 2017 15:36:59 +0200
changeset 0
18c8c5dd363b
child 1
bbf887728d76
permissions
-rw-r--r--

FreeBSD: add initial poudriere.md

0
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
1 FreeBSD poudriere howto
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 =======================
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
3
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 What is poudriere?
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 ------------------
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
6
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 In short, poudriere is a tool for building packages into clean jails to make
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 predictible and secure installation/upgrades.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
9
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 Installation
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 ------------
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
12
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 ### From packages
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
14
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 pkg install poudriere
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 pkg isntall dialog4ports
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 ### From ports
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
19
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 make -C /usr/ports/ports-mgmt/poudriere install clean
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
21 make -C /usr/ports/ports-mgmt/dialog4ports install clean
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
22
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 Initial configuration
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
24 ---------------------
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
25
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
26 This guide assumes that you use ZFS.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
27
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
28 ### poudriere.conf
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
29
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 The /usr/local/etc/poudriere.conf file does not require much information, the
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
31 following options are required:
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
32
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
33 ZPOOL=zroot
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
34 ZROOTFS=/poudriere
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
35 BASEFS=/poudriere
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
36 POUDRIERE_DATA=${BASEFS}/data
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
37 DISTFILES_CACHE=/poudriere/distfiles
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
38 RESOLV_CONF=/etc/resolv.conf
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
39
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
40 Options:
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
41 - **ZPOOL**: your zfs pool name,
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
42 - **ZROOTFS**: zfs dataset to use,
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
43 - **BASEFS**: base directory for jails and ports,
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
44 - **POUDRIERE**: directory for packages, logs and such,
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
45 - **DISTFILES_CACHE**: directory where to store distfiles,
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
46 - **RESOLV_CONF**: file for DNS resolver.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
47
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
48 This means that:
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
49
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
50 - any jail created by poudriere will be stored in /poudriere/jails,
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
51 - result of builds will be kept in dedicated /poudriere/data directories.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
52
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
53 Create the zfs datasets for poudriere:
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
54
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
55 zfs create zroot/poudriere
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
56 zfs create zroot/poudriere/distfiles
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
57
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
58 Jail creation
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
59 -------------
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
60
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
61 Before building package, you need to create a jail. The easiest way is to use
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
62 the FTP method (default) which simply fetch release tarballs and extract them.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
63
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
64 Let's create a poudriere jail named **FreeBSD-11-1**.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
65
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
66 ### Using FTP
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
67
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
68 poudriere jail -c -j FreeBSD-11-1 -v 11.1-RELEASE
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
69
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
70 Ports fetching
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
71 --------------
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
72
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
73 You also need to have a ports tree to build ports from, you have several way to
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
74 fetch them such as svn, portsnap and git. The default is portsnap and available
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
75 directly from FreeBSD so use it.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
76
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
77 Let's create a default poudriere ports tree.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
78
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
79 poudriere ports -c
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
80
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
81 Building options
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
82 ----------------
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
83
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
84 What's really interesting in building ports is to customize every options of
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
85 them.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
86
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
87 For example, on a server you don't want to have desktop software and all of
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
88 useless things like X.Org, dbus, avahi, pulseaudio and such.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
89
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
90 Poudriere uses different files for customizing options in the following order:
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
91
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
92 - /usr/local/etc/poudriere.d/make.conf
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
93 - /usr/local/etc/poudriere.d/<setname>-make.conf
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
94 - /usr/local/etc/poudriere.d/<tree>-make.conf
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
95 - /usr/local/etc/poudriere.d/<jailname>-make.conf
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
96 - /usr/local/etc/poudriere.d/<jailname>-<tree>-make.conf
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
97 - /usr/local/etc/poudriere.d/<jailname>-<setname>-make.conf
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
98 - /usr/local/etc/poudriere.d/<jailname>-<tree>-<setname>-make.conf
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
99
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
100 For example, in our case we can basically customize our options by creating the
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
101 file **/usr/local/etc/poudriere.d/freebsd-11-1-make.conf**.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
102
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
103 ### Disabling desktop options
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
104
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
105 On a server, we may disable the following options using the `OPTIONS_UNSET`
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
106 variable.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
107
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
108 Note: we use the `+=` assignment to avoid resetting it.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
109
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
110 # /usr/local/etc/poudriere.d/freebsd-11-1-make.conf
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
111 OPTIONS_UNSET+= DBUS NLS X11
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
112
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
113 Configuring per-port options
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
114 ----------------------------
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
115
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
116 It's also possible to edit port options in individual manner, for that purpose,
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
117 we use the `poudriere options` command.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
118
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
119 Let's configure vim to remove options we don't care:
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
120
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
121 poudriere options -j FreeBSD-11-1 -c editors/vim
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
122
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
123 If you defined the **OPTIONS_UNSET** described above, the **NLS** option should
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
124 be disabled by default, now select **CONSOLE** as User interface option.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
125
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
126 Note: it's recommended to use `-c` option because it forces the edition of
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
127 options.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
128
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
129 Building ports
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
130 --------------
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
131
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
132 Now that we have prepared our poudriere environment, let's build a port using
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
133 the `poudriere bulk` command.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
134
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
135 poudriere bulk -j FreeBSD-11-1 editors/vim
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
136
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
137 Since we will probably build a high number of ports, we can use a file instead
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
138 using the `-f` option.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
139
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
140 # /etc/packages.conf
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
141 editors/vim
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
142 shells/zsh
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
143
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
144 poudriere bulk -j FreeBSD-11-1 -f /etc/packages.conf
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
145
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
146 Using your repository
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
147 ---------------------
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
148
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
149 Once you have built some packages, you may use it directly from `pkg` command
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
150 because poudriere build a custom repository.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
151
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
152 In our case, the package repository is located into
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
153 **/poudriere/data/packages/FreeBSD-11-1-default**
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
154
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
155 ### Disable FreeBSD official repository
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
156
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
157 If you want to completely disable the official FreeBSD repository, create the
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
158 following file:
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
159
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
160 # /etc/pkg/no-FreeBSD.conf
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
161 FreeBSD: {
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
162 enabled: no
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
163 }
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
164
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
165 ### Enable our own package repository
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
166
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
167 Create the following file:
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
168
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
169 # /etc/pkg/local.conf
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
170 local: {
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
171 url: "/poudriere/data/packages/FreeBSD-11-1-default"
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
172 }
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
173
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
174 Note: the **local** name can be replaced with anything.
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
175
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
176 Update pkg repository and upgrade:
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
177
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
178 pkg update -f
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
179 pkg upgrade
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
180
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
181 Then install our own packages:
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
182
18c8c5dd363b FreeBSD: add initial poudriere.md
David Demelier <markand@malikania.fr>
parents:
diff changeset
183 pkg install vim zsh

mercurial