Wednesday, April 2, 2025

Arch Linux: Installing the system using "archinstall" from a local repository mirror

To install the OS from your own Arch Linux repository mirror using the "archinstall" script, you need to do the following preparatory steps:

1. After starting the OS from the ISO image, replace mirrorlist with the only entry for your mirror:
echo 'Server = http://your_mirror_server/$repo/os/$arch' > /etc/pacman.d/mirrorlist

2. Then force update the "pacman" database, ignoring the local cache:
pacman -Syy

3. Disable the service that runs the utility for updating the mirror list for the package manager "pacman":
systemctl mask reflector.service

4. Run the installation script with offline operation parameters and disabling the version check:
archinstall --offline --skip-version-check

5. Perform the necessary settings for installing the OS in the "archinstall" script menu, except for the "Mirrors" item - you cannot touch it!

No comments:

Post a Comment