.. _installing.binary
Binary executable
=================
Archinstall can be compiled into a standalone executable.
For Arch Linux based systems, there's a package for this called `archinstall `_.
Using pacman
------------
Currently, you need to create your own mirror or use https://archlinux.life as a mirror.
We'll use the later for this example as it's less of a process to explain.
..note:: To create your own mirror, the `archiso `_ wiki has a good tutorial and explanation of how and what a custom mirror does.
Setup pacman to use https://archlinux.life as a mirror by modifying `/etc/pacman.conf` to contain the following:
.. code-block::
[archlife]
Server = https://archlinux.life/$repo/os/$arch
SigLevel = Optional TrustAll
You can now update your mirror-list and install `archinstall`.
.. code-block::
sudo pacman -Syy
sudo pacman -S archinstall
Using PKGBUILD
--------------
The `source `_ contains a binary `PKGBUILD `_ which can be either copied straight off the website. Or cloned using `git clone https://github.com/Torxed/archinstall`.
Once you've obtained the `PKGBUILD`, building it is pretty straight forward.
.. code-block::
makepkg -s
Which should produce a `archinstall-X.x.z-1.pkg.tar.zst` that can be installed using:
.. code-block::
sudo pacman -U archinstall-X.x.z-1.pkg.tar.zst
.. note::
For a complete guide on the build process, please consult the wiki on `PKGBUILD `_.
Manual compilation
------------------
You can compile the source manually without using a custom mirror or the `PKGBUILD` that is shipped.
Simply clone or download the source, and while standing in the cloned folder `./archinstall`, execute:
.. code-block::
nuitka3 --standalone --show-progress archinstall
This requires the `nuitka `_ package as well as `python3` to be installed locally.