Setting up the build environment on HDD: Difference between revisions

From Alpine Linux
(use https links)
(Removed obsolete content and replaced with transclusion Include:Upgrading to Edge)
Line 1: Line 1:
== Introduction  ==
In earlier days, Alpine Linux used a separate Gentoo build environment. Install Alpine Linux in [[Setting up disks manually|System Disk]] mode i.e traditional or classic harddisk installation.
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.
Alternates methods are to setup a clean Alpine Linux build environment inside another system, using a [[Installing Alpine Linux in a chroot|chroot]] or some form of [[:Category:Virtualization|virtualization]]. The host system may also be Alpine Linux, or may be something else.


Another method is to setup a clean Alpine build environment inside another system, using a [[Installing Alpine Linux in a chroot|chroot]] or some form of [[:Category:Virtualization|virtualization]]. The host system may also be Alpine, or may be something else.
{{Tip| Alpine Linux can be [[Tutorials_and_Howtos#Desktop|configured to daily drive ]] as a development desktop system.}}


== Boot your build environment  ==
== Upgrade to edge ==
Boot the latest [https://alpinelinux.org/downloads Alpine Linux image] on a box with a HDD.


== Basic setup ==
{{:Include:Upgrading to Edge}}
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).
{{Cmd|setup-alpine}}


For more details, see [[Installation]] or [[setup-alpine]].
== Contribute ==


== Change your repository to use "edge" ==
Proceed to [[Creating_an_Alpine_package|create new package]] or [[Development using git:Creating patches|create and submit patches]] for Alpine Linux.
 
{{Cat|/etc/apk/repositories|https://dl-4.alpinelinux.org/alpine/edge/main/
https://dl-4.alpinelinux.org/alpine/edge/testing/
}}
 
{{Note|You can replace 'dl-4' with some other available [https://mirrors.alpinelinux.org/ mirror].}}
 
== Update/upgrade your system ==
{{Cmd|apk update
apk upgrade}}
 
Next, [[setup your system and account for building packages]].
 
Then reboot your system.
 
== Start building packages ==
Now you can move on to [[Creating_an_Alpine_package|creating packages for Alpine.]]


[[Category:Development]]
[[Category:Development]]
[[Category:Installation]]

Revision as of 14:14, 17 February 2025

In earlier days, Alpine Linux used a separate Gentoo build environment. Install Alpine Linux in System Disk mode i.e traditional or classic harddisk installation.

Alternates methods are to setup a clean Alpine Linux build environment inside another system, using a chroot or some form of virtualization. The host system may also be Alpine Linux, or may be something else.

Tip: Alpine Linux can be configured to daily drive as a development desktop system.

Upgrade to edge

An upgrade of Alpine Linux from a stable version to the rolling development version edge basically requires the same steps as Upgrading to latest release.

The crucial difference is, that when editing the /etc/apk/repositories file, all referenced repository versions (such as v3.22 or latest-stable) therein need to be pointing to edge as follows.

Contents of /etc/apk/repositories

#/media/cdrom/apks http://dl-cdn.alpinelinux.org/alpine/edge/main http://dl-cdn.alpinelinux.org/alpine/edge/community @testing http://dl-cdn.alpinelinux.org/alpine/edge/testing

When using edge branch, testing repository can be added as a tagged repository as shown above. Remember that, packages in testing repository have no support.

Warning: Do not enable Main/Community repositories from both stable release branch and edge at the same time. This can break your system. Either use edge or stable. If you mix stable and edge repositories, you're on your own.


After upgrading to edge, the currently installed edge version i.e the build date that is attached to the edge release may be checked with command:

$ cat /etc/alpine-release

Contribute

Proceed to create new package or create and submit patches for Alpine Linux.