Setting up the build environment on HDD: Difference between revisions

From Alpine Linux
(→‎Change repository: change mirror link)
Line 13: Line 13:
For more details, see [[Installation]] or [[setup-alpine]].
For more details, see [[Installation]] or [[setup-alpine]].


== Change repository ==
Change your repository to use '''edge''':
Change repository to use '''edge'''


{{Cmd|vi /etc/apk/repositories}}
{{Cat|/etc/apk/repositories|
 
The file should look like this
<PRE>
http://dl-4.alpinelinux.org/alpine/edge/main/
http://dl-4.alpinelinux.org/alpine/edge/main/
http://dl-4.alpinelinux.org/alpine/edge/testing/
http://dl-4.alpinelinux.org/alpine/edge/testing/
</PRE>
}}
 
'''''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}}
{{Cmd|apk upgrade}}
{{Cmd|apk upgrade}}
Add the Alpine SDK:
{{Cmd|apk add alpine-sdk}}


Reboot your system.
Reboot your system.

Revision as of 10:37, 25 March 2012

Setting up a 'edge' build environment on HDD

Introduction

We will host this build environment on a HDD installed Alpine.

Boot you 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

http://dl-4.alpinelinux.org/alpine/edge/main/ http://dl-4.alpinelinux.org/alpine/edge/testing/

Note: You can replace 'dl-4' with some other available mirror.

Update/upgrade your system:

apk update

apk upgrade

Add the Alpine SDK:

apk add alpine-sdk

Reboot your system.

Start building packages

Now you can move on to creating packages for Alpine.