Skip to content

Update alpine mirror

Tristan Israël edited this page Feb 2, 2026 · 3 revisions

This page explains how to maintain a local Safecor and Alpine repository.

Prerequisites

You must have a correctly set and secured web server and the ability to run shell script on it.

Preparation

  • On the web server, create the following directories:
    <web root>/alpine
    <web root>/safecor
  • In a working directory different from the web root, download the scripts located at setup/scripts

Update Alpine repository

  • Enter the working directory
  • Run the script $ ./sync_alpine_repository.sh <web root>/alpine

After the download is finished, the local repository path will contain a mirror of the official Alpine repository for the architecture and the version chosen.

Update Safecor repository

  • Enter the working directory
  • Run the script $ ./sync_safecor_repository.sh <web root>/safecor

After the download is finished, the local repository path will contain a mirror of the official Alpine repository for the architecture and the version chosen.

Post-synchronisation operations

After the pakcages have been downloaded you might need to set the correct permissions and user:group on the files.

Clone this wiki locally