Bootstrapping Alpine Linux: Difference between revisions

From Alpine Linux
(simplify with `arch` command)
m (Switched apk-tools-static url to https and current (3.18) version. https is necessary as you are downloading something you execute and no other verification takes place.)
Line 9: Line 9:
<ol>
<ol>
<li>Download apk-tools-static for your architecture.</li>
<li>Download apk-tools-static for your architecture.</li>
<pre>wget http://dl-cdn.alpinelinux.org/alpine/v3.12/main/$(arch)/apk-tools-static-2.10.5-r1.apk</pre>
<pre>wget https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/apk-tools-static-2.14.0-r2.apk</pre>


<li>Unpack .apk</li>
<li>Unpack .apk</li>

Revision as of 12:57, 4 June 2023


VPS

This section is to provide a means to bootstrap Alpine Linux on any VPS.

Process

Prepare

  1. Download apk-tools-static for your architecture.
  2. wget https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/apk-tools-static-2.14.0-r2.apk
  3. Unpack .apk
  4. tar zxf apk-tools-static-*.apk

Install

sudo ./sbin/apk.static --arch $(arch) -X http://dl-cdn.alpinelinux.org/alpine/latest-stable/main/ -U --allow-untrusted --root /tmp/target --initdb add alpine-base

Bootloader

References