Setting up the build environment on HDD: Difference between revisions
Dubiousjim (talk | contribs) (→Change repository: rework) |
Dubiousjim (talk | contribs) (delete H1, misc layout/rewording) |
||
Line 1: | Line 1: | ||
= | == Introduction == | ||
In earlier days, Alpine used a separate Gentoo build environment. Nowadays we build in Alpine itself, and things are much simpler. | |||
We will host this build environment on a HDD installed Alpine, using the "edge" repository. | |||
We will host this build environment on a HDD installed Alpine. | |||
== Boot | == Boot your build environment == | ||
Boot the latest [http://alpinelinux.org/downloads Alpine Linux image] on a box with a HDD. | Boot the latest [http://alpinelinux.org/downloads Alpine Linux image] on a box with a HDD. | ||
== Basic setup == | == Basic setup == | ||
Line 13: | Line 13: | ||
For more details, see [[Installation]] or [[setup-alpine]]. | For more details, see [[Installation]] or [[setup-alpine]]. | ||
Change your repository to use | == Change your repository to use "edge" == | ||
{{Cat|/etc/apk/repositories| | {{Cat|/etc/apk/repositories| | ||
Line 22: | Line 22: | ||
'''''Note:''' You can replace 'dl-4' with some other available [[Project:Mirrors|mirror]].'' | '''''Note:''' You can replace 'dl-4' with some other available [[Project:Mirrors|mirror]].'' | ||
Update/upgrade your system | == Update/upgrade your system == | ||
{{Cmd|apk update | {{Cmd|apk update | ||
apk upgrade}} | |||
Also, add the Alpine SDK: | |||
{{Cmd|apk add alpine-sdk}} | {{Cmd|apk add alpine-sdk}} | ||
Then reboot your system. | |||
== Start building packages == | == Start building packages == |
Revision as of 10:43, 25 March 2012
Introduction
In earlier days, Alpine used a separate Gentoo build environment. Nowadays we build in Alpine itself, and things are much simpler.
We will host this build environment on a HDD installed Alpine, using the "edge" repository.
Boot your build environment
Boot the latest Alpine Linux image on a box with a HDD.
Basic setup
Set basic environment settings (when prompted for disk, select the disk(s) that you wish to use, and use them in sys mode. Note that if you specify two disks, soft raid will be setup on them automatically).
setup-alpine
For more details, see Installation or setup-alpine.
Change your repository to use "edge"
Contents of /etc/apk/repositories
Note: You can replace 'dl-4' with some other available mirror.
Update/upgrade your system
apk update apk upgrade
Also, add the Alpine SDK:
apk add alpine-sdk
Then reboot your system.
Start building packages
Now you can move on to creating packages for Alpine.