Subject: alpine virt and standard not installing due to no network access to mirrors ...

From: [email-masked]
Date: Tue, 28 Mar 2023 10:22:17 -0600

I'm trying to install alpine 3.16 virt and standard to a vm/container.  
  My network setup does not allow me access to the internet mirror  
list for apks.
Is there a FAQ that describes how to configure and alpine install to  
use some type of local apk repository (direcory or file)?

TIA

---

From: Alex <[email-masked]>
Date: Tue, 28 Mar 2023 22:31:36 +0200

On Tue, 28 Mar 2023 10:22:17 -0600
[email-masked] wrote:

> 
> I'm trying to install alpine 3.16 virt and standard to a
> vm/container. My network setup does not allow me access to the
> internet mirror list for apks.

Alpine uses wget to download packages, so you can just add the address
of the folder of your apk repository.

Assuming your repository is at /srv/apk, just add:

/srv/apk

to your /etc/apk/repositories file, and everything should work.

-- 
Current PGP KeyID: 11ADE4393600C1BDFFCBC0A598DE15942B08CA00

https://blueselene.com/pgp-archive/11ADE4393600C1BDFFCBC0A598DE15942B08CA00/key.pub 

Key also available through Web Key Directory.

For up-to-date information on my crypto keys see
https://blueselene.com/crypto.html

---

From: "alice" <[email-masked]>
Date: Tue, 28 Mar 2023 22:39:51 +0200

> of the folder of your apk repository.

apk does not use wget, it uses a handwritten http fetch client.
(the same idea works however)

funnily though, mkinitfs does use wget for url apkovl= params